{% macro submenu(nav) -%} {% for file, item in nav -%}
  • {{item.name | safe}} {%- if item.description -%} {{item.description | safe}} {%- endif -%} {%- if item.sub -%} {%- if item.mega -%} {%- else -%} {%- endif -%} {%- endif %}
  • {%- endfor %} {%- endmacro %} {% macro megamenu(nav) %} {% for file, item in nav %}
  • {% if item.sub %} {% endif %}
  • {% endfor %} {% endmacro %}