{% extends 'base.html' %} {% block title %}{{ path }}{% endblock %} {% macro render_tree(tree, root='') %} {% endmacro %} {% block body %}
{% if not edit %} {% if path != '' %} Edit {% endif %} {% if content is not none %} {% autoescape false %} {{ markdown(content, extensions=['extra']) }} {% endautoescape %} {% else %}

This document doesn't exist

{% endif %} {% else %}
{% set edit_content = content %} {% if content is none %} {% set edit_content = '# Title\n\nContent' %} {% endif %} {% endif %}

{% for child in document_tree.get_node(path).children %} {% if loop.first %} {% endif %} {% endfor %}
{% set footer = config.get('foote') %} {% if footer not in [None, False, ""] %} {% endif %} {% endblock %}