{% for category, message in messages %}
{# An error is assertive (it blocked something); a success/notice is polite. #}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
{{ message }}
{% endfor %}