Skip to content

Checking the local copy is faithful

Terminal window
t4 compare # the home page
t4 compare about/admissions
t4 compare --local http://127.0.0.1:8331

t4 compare fetches the page from the published site and from the local server, removes everything this tool injected, and diffs the two. The local copy is assembled from a mirror, plus local edits, plus captured tag output: several places for a difference to creep in unnoticed.

Everything injected is fenced with <!--DEPARTUREGATE:BEGIN--> / <!--DEPARTUREGATE:END--> so it can be removed exactly. Stripping by pattern does not work: the annotations themselves contain > and ->.

Differences are explained rather than reported as failures. Local layout edits not yet published will show up, and so will content that changed in T4 since the mirror was taken.

An independent, unofficial tool. Not produced, endorsed or supported by TERMINALFOUR Solutions Ltd, and not TERMINALFOUR software. “T4” and “TERMINALFOUR” are their trademarks, used here only to identify the software this works with. Copyright © 2026 Small Robot Corp. Source available under the PolyForm Shield License 1.0.0.