{% for path in paths %} {% if loop.last %} {{ path.0 }} {% elif loop.first and not loop.last %} {{ path.0 }} {% else %} {{ path.0 }} {% endif %} / {% endfor %}