{% extends "project/base.html" %} {% block title %}{{ file.path }} — aiwe{% endblock %} {% block project %} {% set raw = "/projects/" ~ project.slug ~ "/raw/" ~ (file.path | urlencode) %} {% if file.kind == "markdown" %} {# Safe: the filter shows raw HTML of the file as text. #}
{{ file.text }}
{% else %}
No preview for this file.
{% endif %} {# The last line of the page: a download is rare, so its link stays out of the way. #}↓ Download {{ file.size | filesizeformat }}
{% endblock %}