{% if files.count %} <ul> {% for file in files %} <li>{{ file.path }}</li> {% endfor %} </ul> {% else %} <p>No file list available.</p> {% endif %}