pub fn render_partial(
protocol: &WebUIProtocol,
entry_id: &str,
request_path: &str,
inventory_hex: &str,
index: &mut ProtocolIndex,
) -> Result<Value, HandlerError>Expand description
Produce a JSON partial response for client-side navigation.
Returns the matched route chain, templates, inventory, and cache tags.
State is not included — the caller is responsible for adding
application state to the response (e.g. as a top-level "state" field
for non-streaming, or as NDJSON Chunk 2 for streaming).
Returns a serde_json::Value object with fields:
templateStyles: module CSS definition tags for inventory-new components (empty for Link/Style)templates: client template payloads the client doesn’t already have (inventory-filtered)inventory: updated hex bitmaskpath: the request pathchain: matched route chain arraycacheTags: resolved cache tags from the full route chain (union of all levels)