Use this section when one template needs to serve full pages, htmx fragments, OOB updates, Suspense blocks, and SSE payloads.
Rendering
Template rendering and context passing
How Template works with kida under the hood.
Fragments
Fragment, Page, and OOB rendering
Render named blocks independently for htmx.
Fragment Blocks
Naming and targeting blocks
Use template blocks as the shared unit for fragments, OOB swaps, Suspense, and SSE.
Layout Patterns
Block-heavy layouts, boost pattern, outer vs inner
When to use block, include, and call.
Filters
Custom template filters and globals
Register filters and globals on your app.
Kida Integration
AST-driven OOB discovery and regions
How Chirp uses template_metadata() for block validation.