Functions
_registered_layout_names
1
set[str]
▼
Collect every layout template name registered in any page chain.
_registered_layout_names
1
set[str]
▼
def _registered_layout_names(layout_chains: list[Any]) -> set[str]
Parameters
| Name | Type | Description |
|---|---|---|
layout_chains |
list[Any] |
Returns
set[str]
check_page_extends_layout
3
list[ContractIssue]
▼
Flag page-leaf templates that ``{% extends %}`` a registered layout.
Compositi…
check_page_extends_layout
3
list[ContractIssue]
▼
def check_page_extends_layout(page_leaf_templates: set[str], layout_chains: list[Any], kida_env: Environment | None) -> list[ContractIssue]
Flag page-leaf templates that{% extends %}a registered layout.
Composition (render_with_blocks) and inheritance ({% extends %})
are not interchangeable in Chirp's page convention. When both are in
play against the same template, block overrides drop silently and the
layout structure renders twice.
Parameters
| Name | Type | Description |
|---|---|---|
page_leaf_templates |
set[str] |
|
layout_chains |
list[Any] |
|
kida_env |
Environment | None |
Returns
list[ContractIssue]