{% for menu_item in menu %} {{ menu_item.title }} {% if not forloop.last %}|{% endif %} {% endfor %}