{% set path = [] %} {% set i = namespace(value=0) %} {% macro draw_dir(dir, depth, extra) -%} {% set i.value = i.value + 1 %} {% if depth %} {% do path.append(dir.name) %} {% endif %}

{{ dir.name }}

{% for child_dir in dir.child_dirs.values() %} {{ draw_dir(child_dir, depth + 1, extra) }} {% endfor %}
{% if depth %} {% do path.pop() %} {% endif %} {%- endmacro %}
Home

Archivy

{% with messages = get_flashed_messages() %} {% if messages %} {% endif %} {% endwith %} {% block content %}{% endblock %}