{% load yama %} {% for item in menu.top_visible_items %} {% menu_item_as_li item first=forloop.first last=forloop.last %} {% endfor %}