# HTML Fragments
URL: /chirp/docs/build-apps/html-fragments/
Section: html-fragments
Tags: templates, kida, rendering, fragments, oob
--------------------------------------------------------------------------------
Use this section when one template needs to serve full pages, htmx fragments, OOB updates, Suspense blocks, and SSE payloads. Monitor Rendering Template rendering and context passing How Template works with kida under the hood. File Code 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. Filter Filters Custom template filters and globals Register filters and globals on your app. Puzzle Kida Integration AST-driven OOB discovery and regions How Chirp uses template_metadata() for block validation.
--------------------------------------------------------------------------------
Metadata:
- Word Count: 114
- Reading Time: 1 minutes