{% macro nav() -%} {%- endmacro %} {% macro tree(root, level=0) -%} {% if root.children %} {% endif %} {%- endmacro %}