{{ message|safe }}
                {% endfor %}
            {% endif %}
        {%- endwith %}
    {% endblock %}
    {% block main %}
        {% block content %}
                {{markup_content}}
    {% endblock %}
    {% endblock %}
    {# *** Allow sub-templates to insert extra html to the head section *** #} {% block extra_css %}{% endblock %}
 }})