{% for item in menu %} {% if item.type == item.TYPE_LINK %} {% endif %} {% endfor %}