{% extends 'layout.html' %} {% block content %}
{% include 'nav.html' %}

{{file[2]}}

Expires at: {{file[5]|expirein}}

{% if file[2].split('.')[-1] in ['png', 'jpg', 'jpeg', 'gif', 'webp'] %} {% elif file[2].split('.')[-1] in ['mp4', 'webm', 'ogg'] %} {% elif file[2].split('.')[-1] in ['mp3', 'wav', 'ogg'] %} {% elif file[2].split('.')[-1] in ['txt', "py", "php", "htm", "html", "css", "js", "ts", "cr", "c", "cpp", "rs", "rst"] %} {% set filed = file[1] + '.' + file[2].split('.')[-1] %}

{{ filed|gettxt|replace('&', '&')|replace('<', '<')|replace('>', '>')|replace('\n', '
')|safe}}

{% elif file[2].split('.')[-1] in ['md'] %} {% set filed = file[1] + '.' + file[2].split('.')[-1] %}

{{ filed|gettxt|markdown|safe}}

{% else %}

This file cannot be previewed

{% endif %}

{% endblock %} {% block head %} {% if file[2].split('.')[-1] in ['png', 'jpg', 'jpeg', 'gif', 'webp'] %} {% endif %} {% endblock %}