☞ {{ os.path.basename(cwd) }}/ {% set entrys = os.path.normpath(os.path.join('/', path)).split('/') %} {% set path_ = '/' %} {% for entry in entrys %} {% if entry %} {% set path_ = os.path.join(path_, entry) %} {{ entry }}{% if loop.index < loop.length %}/{% endif %} {% endif %} {% endfor %} {% autoescape false %} {{ html }} {% endautoescape %}