{% macro menu() %} {% endmacro menu %} {% macro items(menu) %} {%- for menu_item in menu -%} {# skipping sub-child check #}
  • {{ menu_item.name }}
  • {%- endfor-%} {% endmacro items %} {% macro get_link(item) %} {% if item.external is defined and item.external == true %} {{ item.url }} {% else %} {{ get_url(path=item.url) }} {% endif %} {% endmacro get_link %}