default / {% for p in path %} {% if not loop.first %} {% set parents = path[:loop.index -1] %} {{ p }} {% else %} {{ p }} {% endif %} {% if not loop.last %} / {% endif %} {% endfor %}