web: parse every page template once, at start-up !214

merged merged by cmc on 2026-09-04 02:16 UTC · krz/gitbay:templates-once into main

Discussion

cmc

Render parsed the layout and the page on every request, and a template that did not parse failed the first visit to its page rather than the process. All page templates now parse with the layout at package init and Render looks the page up; TestEveryPageTemplateParses asserts the set.

The nil-safe str/field helpers still render a misspelled field as absent; that is the layout's contract with page structs that do not share fields, and stays.

Closes #116