{% set errors = app.flashes('error') %} {% set warnings = app.flashes('warning') %} {% set success = app.flashes('success') %} {% if errors %}

Error!

{% for error in errors %} {{ error }} {% endfor %}
{% endif %} {% if warnings %}

Warning!

{% for warning in warnings %} {{ warning }} {% endfor %}
{% endif %} {% if success %}

Success!

{% for succes in success %} {{ succes }} {% endfor %}
{% endif %} {% block body %}{% endblock %}