{% if menu %} <ul class=“first”>

{% for item in menu  %}
        <li><a href="{{ item.url }}">{{ item.title }}{% if item.children %} &raquo;{% endif %}</a>
        {% if item.children %}
                <ul class="second">
                {% for child in item.children %}
                        <li><a href="{{ child.url }}">{{ child.title }} {% if child.children %} &raquo;{% endif %}</a>
                        {% if child.children %}
                                                <ul class="third">
                                                        {% for grandchild in child.children %}
                                                                <li><a href="{{ grandchild.url }}">{{ grandchild.title }}</a></li>
                                                        {% endfor %}
                                                </ul>
                        </li>
                        {% endif %}
                {% endfor %}
                </ul>
        </li>
        {% endif %}
  {% endfor %}

</ul> {% endif %}