Expand description
Route component inventory management for incremental route rendering.
These helpers walk the normal render fragment graph. The request-aware path is
route-aware but state-agnostic: it follows the active route chain for the
current request path, while conservatively traversing if, for, and
attribute-template edges without evaluating runtime state.
Structs§
- Route
Chain Entry - A single entry in the matched route chain, one per nesting level.
Functions§
- collect_
nested_ route_ params - Walk the fragment graph following matched routes and collect all route parameters from every level of the active route chain.
- collect_
route_ chain - Collect the matched route chain for a request path.
- collect_
route_ chain_ json - Collect the matched route chain as a JSON array value.
- encode_
inventory - Encode an inventory bitmask as a hex string.
- filter_
needed_ components - Filter an inventoryable component set against the client’s inventory bitmask.
- get_
needed_ components - Walk the protocol fragment graph from
entry_idand return the names of all components the route needs that are NOT in the client’s inventory. - get_
needed_ components_ for_ request - Walk the protocol from the persistent
entry_idand return the component templates needed for the currentrequest_path. - get_
route_ templates - Get the f-template HTML strings needed for a route that the client doesn’t already have.
- get_
route_ templates_ for_ request - Get the client template HTML strings needed for the active route chain
rooted at
entry_idfor the currentrequest_path. - parse_
inventory - Parse a hex string into bytes for the inventory bitmask.
- render_
partial - Produce a complete JSON partial response for client-side navigation.