{% import _self as macros %} {% macro loop(page) %} {% import _self as macros %} {% for p in page.children.visible %} {% set current_page = (p.active or p.activeChild) ? 'active' : '' %} {% if p.children.visible.count > 0 %}