{# ══════════════════════════════════════════════ MACROS — must come before first use in Jinja2 ══════════════════════════════════════════════ #} {# Flow view: depth-indented vertical chain with connector lines #} {% macro render_chain(qid, quest_by_id, children, visible, collector_prereqs, depth) %} {% set q = quest_by_id[qid] %} {% set visible_kids = [] %} {% for cid in children.get(qid, []) %} {% if cid in visible %}{% set _ = visible_kids.append(cid) %}{% endif %} {% endfor %} {% if depth > 0 %}
{% endif %}