{% if g.user %} {% set r = g.user['role'] %} {% set ep = request.endpoint %}
{% endif %} {% with msgs = get_flashed_messages(with_categories=true) %}{% for c, m in msgs %}
{{ m }}
{% endfor %}{% endwith %} {% block body %}{% endblock %} {% if g.user %}
{% endif %}