{% extends 'bootstrap/base.html' %} {% block title %} {% if title %}{{ title }} - {{ application }}{% else %}{{ application }}{% endif %} {% endblock %} {% block styles %} {{super()}} {% endblock %} {% block navbar %} {% endblock %} {% block content %}

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% else %}

{% endif %} {% endwith %} {# application content needs to be provided in the app_content block #} {% block app_content %}{% endblock %}
{% endblock %} {% block scripts %} {% endblock %}