{% macro nav_loop(page) %} {% import _self as macros %} {% for p in page.children.visible %} {% set active_page = (p.active or p.activeChild) ? 'active' : '' %}
  • {{ p.menu }} {% if p.children.visible.count > 0 %} {% endif %}
  • {% endfor %} {% endmacro %}