{% if title %} {{site_title}} - {{ title }} {% else %} {{site_title}} {% endif %} {% block scripts %} {% endblock %} {% if not blank_page %}
{% set session_name = active_session_name() or '' %} {# Always in the DOM, hidden when empty, so setSessionRibbon() can show and hide it rather than having to build it; the server settles only which state it starts in. An auto-started session has no name and so shows no ribbon, which is why this turns on the name rather than on has_session. #}
{{ session_name }}
{% if get_flashed_messages() %} {% for category, message in get_flashed_messages(with_categories=true) %}
{{ message }}
{% endfor %} {% endif %}
{# Written once here rather than per page: the heading is chrome, and its text is the same string the tag uses. #} <header class="page-header"> <div class="page-heading"> <h1 class="title">{% block heading %}{{ title }}{% endblock %}</h1> {% block heading_action %}{% endblock %} </div> {% block header %}{% endblock %} </header> <div class="content"> {% block content %} {% endblock %} </div> </div> </div> {% endif %} {% block body %} {% endblock %} </body> </html>