{% block main %} {% if doc.html %} {{doc.html|render|safe}} {% else %} {{doc.body}} {% endif %} {% endblock %}