Skip to content

Commit

Permalink
Improved the code used to display flash notices
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz authored and wouterj committed Jun 27, 2015
1 parent 176cdc6 commit c2676ae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions quick_tour/the_controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,11 @@ And you can display the flash message in the template like this:

.. code-block:: html+jinja

<div>
{{ app.session.flashbag.get('notice')[0] }}
</div>
{% for flashMessage in app.session.flashbag.get('notice') %}
<div class="flash-notice">
{{ flashMessage }}
</div>
{% endfor %}

Final Thoughts
--------------
Expand Down

0 comments on commit c2676ae

Please sign in to comment.