{% include 'partials/document_header.html' %} {{ contents | safe }} {% if date %} {% include 'partials/document_footer.html' %} {% endif %}