{#- chirp-ui: Route-backed subsection tabs Route-backed nav links with aria-current="page". Use role="navigation", not role="tablist" — each tab loads a new URL. Requires: tab_is_active (template global), current_path, tab_items. Tab item: {label, href, icon?, badge?, match?} — match: "exact" | "prefix" -#} {% def render_route_tabs(tab_items, current_path, target="#page-root", is_active=none) %} {% set _is_active = is_active if is_active is not none else tab_is_active %} {% end %} {% def route_tabs(tabs, current_path, target="#page-root", is_active=none) %} {{ render_route_tabs(tabs, current_path, target=target, is_active=is_active) }} {% end %}