Skip to content

Commit

Permalink
Update Flash Fixture doc
Browse files Browse the repository at this point in the history
Updated fash fixture doc to actual behavior as #912
  • Loading branch information
mbelletti committed Aug 23, 2024
1 parent 887a440 commit 8c5540a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/chapter-06.rst
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,7 @@ and in the template:
.. code:: html
...
<div id="py4web-flash"></div>
...
<script src="js/utils.js"></script>
[[if globals().get('flash'):]]
<script>utils.flash([[=XML(flash)]]);</script>
[[pass]]
<flash-alerts class="padded" data-alert="[[=globals().get('flash','')]]"></flash-alerts>
By setting the value of the message in the flash helper, a flash
variable is returned by the action and this triggers the JS in the
Expand Down

0 comments on commit 8c5540a

Please sign in to comment.