Rendering
Pages, layouts, islands and assets — markup as Chapel, not as a template.
A page is a Chapel module that exports page. It receives the request context and the page's metadata, and returns the body of the document. The return value goes into a layout, and the result goes into the document shell.
There is no template language. Markup is written in Chapel, and the framework's job is to make that safe rather than to add a second syntax.
In this section
- Pages and PageMeta — the handler signature and the metadata record
- MarkupBuilder — the tag stack, escaping and
raw - Layouts — document chrome, and how a page selects one
- Islands — partial hydration, props and the client bundle
- Static assets — hashing, cache headers and
asset