{% with messages = get_flashed_messages(with_categories=true) %}
{% for category, message in messages %}
{% block content %}{% endblock %}
{{ message }}
{% endfor %}
{% endwith %}
{% if standalone_error %}
{{ standalone_error }}
{% endif %}