{% macro render_menu(menu_root,current_view) -%} {% for item in menu_root -%} {% if item.is_category() -%} {% set children = item.get_children() %} {% if children %} {% set dropdown_class = "dropdown active" if item.is_active(current_view) else "dropdown" %}