{% with messages = get_flashed_messages(with_categories=True) %} {% if messages %} {% for category, message, delay, is_dismissible, validation_errors in messages %}
{% endfor %} {% endif %} {% endwith %}