astwerk

Examples

Working code before explanation, so you can see what the API does and then read why it works. Every WASM demo has a compiled-markup twin with the same behaviour — the JavaScript generated at build time and embedded in the page (view source: no WASM loaded), or full Go in the browser when you need it. The last few pages are code-only: templ authoring and the parts of astwerk that build a site rather than run in one. Starting from nothing instead? The Build a site tutorial goes step by step from go mod init to a deployed site.

Compiled markup (x)

WASM demos

In code