App-level OOB region registry for layout-contract serialization.
Maps OOB block names (e.g.breadcrumbs_oob) to serialization config
(target ID, swap strategy, wrapper behavior). Apps register regions during
setup; the registry is frozen at runtime alongside routes and middleware.
Convention fallback: unregistered blocks useblock_name.removesuffix("_oob")
as target ID,outerHTMLswap, and wrapper div.
templating.oob_registry
| Name | Type | Default | Description |
|---|---|---|---|
type
|
|
— | |
qualified_name
|
|
— | |
element_type
|
|
— | |
description
|
|
— | |
source_file
|
|
— | |
line_number
|
|
— | |
is_autodoc
|
|
— | |
autodoc_element
|
|
— | |
_autodoc_template
|
|
— | |
_autodoc_url_path
|
|
— | |
_autodoc_page_type
|
|
— | |
title
|
|
— | |
doc_content_hash
|
|
— |
Symbols on this page
Serialization config for a single OOB region.
target_id: DOM element ID for hx-swap-oob targeting. swap: htmx swap strategy — "innerHTML" or "true" (outerHTML). wrap:…
App-level registry mapping OOB block names to serialization config.
Mutable during setup, frozen at runtime (same lifecycle as routes).
OOBRegionConfig
class
Serialization config for a single OOB region.
target_id: DOM element ID for hx-swap-oob targeting. swap: htmx swap strategy — "innerHTML" or "true" (outerHTML). wrap: Whether to wrap in
OOBRegistry
class
App-level registry mapping OOB block names to serialization config.
Mutable during setup, frozen at runtime (same lifecycle as routes).
View source · /home/runner/work/chirp/chirp/site/../src/chirp/templating/oob_registry.py:1