The .ghtmx Syntax Specification
This document is the language surface's source of truth, and the tests
are its enforcement: every construct below carries Verified by
anchors naming the corpus entries and example suites that run it on
every build. internal/syntaxcheck keeps the contract bidirectional โ
every golden corpus entry must be referenced here, every referenced
path must exist and contain tests, and every parser node type must be
documented. Undocumented syntax is unsupported: a new construct
fails the coverage check until this document describes it.
The surface is a syntactic superset of templ at the pinned
TEMPL_SYNTAX_BASELINE โ commit
04abee5364c6fab2bde8c00d215fdcb630ad6a94 (โ v0.3.1020+36), see
TEMPL_SYNTAX_BASELINE.md โ with two semantic carve-outs, itemized
with their replacement constructs in the final section and, in full,
in CONFORMANCE.md.