{% extends "files/_layout.html" %} {% from "_macros.html" import icon %} {% from "files/_macros.html" import in_place, size %} {% set explorer = true %} {# A file, in the explorer's frame (tree beside it, path above). A text file you may change opens straight in the editor: CodeMirror over a textarea (js/editor.js; without JavaScript the textarea and Save post `/files/save` as a form). Markdown and HTML have a Preview beside Edit, drawn by the server the way the viewer draws them (js/file-page.js fetches it again after a change). Anything else -- an older version, a file you may only read, an image, a binary -- opens in the viewer (files/_viewer_body.html). A `.py` file has Run when Python is switched on here: Pyodide, in a worker in this browser (js/file-page.js and the `python` tool's worker), with what it printed shown under the file. `?run=1` runs it on arrival -- the explorer's Run button. #} {% block title %}{{ path }} - {{ brand.name }}{% endblock %} {% block files_head %} {% if editing %} {% endif %} {% endblock %} {% block files_content %} {% if problem %}
{{ problem }}