Skip to content

Commit

Permalink
Added note about message categories.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbr committed Nov 4, 2014
1 parent 5490a54 commit 2738f75
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/basic-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,15 @@ applications.
:param container: If true, will output a complete
``<div class="container">`` element, otherwise just the
messages each wrapped in a ``<div>``.

Note that for this functionality to work properly, flashing messages must be
categorized with a valid bootstrap alert category (one of ``success``,
``info``, ``warning``, ``danger``).

.. highlight:: python

Example::

flash('Operation failed', 'danger')

.. highlight:: jinja

0 comments on commit 2738f75

Please sign in to comment.