Functions
resolve_section_context
2
dict[str, Any]
▼
Resolve section context from RouteMeta.section.
Returns tab_items and breadcru…
resolve_section_context
2
dict[str, Any]
▼
def resolve_section_context(meta: RouteMeta | None, sections: dict[str, Section]) -> dict[str, Any]
Resolve section context from RouteMeta.section.
Returns tab_items and breadcrumb_prefix from the matched section, or empty dict if no match (meta is None, section id unknown, or section not registered).
Parameters
| Name | Type | Description |
|---|---|---|
meta |
RouteMeta | None |
Route metadata (may be None). |
sections |
dict[str, Section] |
Registered sections keyed by id. |
Returns
dict[str, Any]