A Gemini Protocol capsule for viewing Bluesky, Standard Site & similar records from the Atmosphere
Something went wrong. Try again.
Move each page into its own template file master
Refactor internal/render so every served page is a text/template in templates/, executed by a thin exported func. text/template (not html) keeps gemtext unescaped. The whitespace-heavy / union-branching sub-renders (post summaries, embeds, document blocks, doc links) stay in Go and are exposed to the templates as funcs, so layout lives in the template files while the gnarly bits keep their exact output. A golden test (testdata/golden/*.gmi) snapshots every page and is verified to match the pre-refactor output byte-for-byte; it stays as a regression guard (regenerate with `go test ./internal/render -update-golden`).
Author JP Hastings-Spital Date (May 31, 2026, 11:41 AM UTC) Commit 5508e99b 5508e99b790c1e00ed976e462caedceeb40e9bb0 Parent eea5a4b6 eea5a4b67a32dc860a3698c20a8cdb9cc001777a