{% for stage in datas %} {% if stage.directory %} {{ stage.directory.split("/")[-1] }} {% endif %}
{% if stage.subdirs %}
{% with datas=stage.subdirs, base_dir=base_dir + "/" + stage.directory.split('/')[-1] %} {% include 'madoc/_recursive_menu.html' %} {% endwith %}
{% endif %} {% endfor %}