{# *** Allow sub-templates to insert extra html to the head section *** #} {% block extra_css %}{% endblock %}
{% block flash_messages %} {%- with messages = get_flashed_messages(with_categories=true) -%} {% if messages %} {% for category, message in messages %} {% if category=='error' %} {% set category='danger' %} {% endif %}
{{ message|safe }}
{% endfor %} {% endif %} {%- endwith %} {% endblock %}
{% block main %} {% block content %}{% endblock %} {% endblock %}

{# *** Allow sub-templates to insert extra html to the bottom of the body *** #} {% block extra_js %}{% endblock %}