{% comment %}Recursive navigation tree node. Expects: node (NavNode), depth (int), active_path (str) from parent context.{% endcomment %} {% load dj_design_system_gallery %} {% if node.node_type.value == "app" %} {# ── App root node ───────────────────────────────────────────── #} {% elif node.has_children %} {# ── Folder / expandable node ── #} {% else %} {# ── Leaf node (component, variant, or document) ─────────────── #} {% nav_link_is_active node active_path active_variant as is_active %} {% include "dj_design_system/gallery/nav_icon.html" with node=node %} {{ node.label }} {% endif %}