{% set i = 1 %}

{{dir.title()}}

{% set i = 1 %} {% set well_path = plots_dir+dir.path+'/well.html' %} {% if path_exists(well_path) %} {{ setup_template_render(well_path, None) }} {% if get_embedded_config(well_path).has_option('well.html', 'filenames') %} {% set well_filenames = get_embedded_config(well_path).get('well.html', 'filenames').split(',') %} {% else %} {% set well_filenames = [] %} {% endif %} {% endif %}
{% if dir.files %}

Additional Files

The following files were also found in this directory:
{% for file in dir.files %} {% if path_exists(file.path) %} {% set cp = get_embedded_config(file.path) %} {% if not file.filename() == 'well.html' and file.filename() not in well_filenames %}

{% if cp.check_option(file.filename(), 'title') %} B{{i}}. {{cp.get(file.filename(), 'title')}} {% else %} B{{i}}. {{file.filename()}} {% endif %}

{{file.render()}}
{% set i = i + 1 %} {% endif %} {% endif %} {% endfor %}
{% endif %}