{% for key, pill in menu.menu.items %}
  • {{ key|capfirst }}

      {% for link in pill.links %} {% if link.has_treeview %}
    • {{ link.name|capfirst }}

        {% for branch in link.tree %}
      • {{ branch.name }}

      • {% endfor %}
    • {% else %}
    • {{ link.name|capfirst }}

    • {% endif %} {% endfor %}
  • {% endfor %}