{% 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 %}
{% block header %}{% endblock %}
{% block content %} {% endblock %}
{% endif %} {% block body %} {% endblock %}