{% for label, flashes in app.session.flashbag.all %} {% for flash in flashes %} {% if ( label == 'success' ) %}
{{ flash }}
{% elseif ( label == 'error' ) %}
{{ flash }}
{% endif %} {% endfor %} {% endfor %}