forked from litestar-org/litestar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from litestar-org/flash-1
docs: add plugin docs for flash messages
- Loading branch information
Showing
6 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
============== | ||
Flash Messages | ||
============== | ||
|
||
.. todo:: Document flash messages from https://github.com/litestar-org/litestar/pull/3145/ | ||
|
||
Registering the plugin | ||
---------------------- | ||
|
||
.. todo:: Document registering the plugin from | ||
|
||
Adding Messages | ||
--------------- | ||
|
||
.. todo:: Document adding messages to request scope | ||
|
||
Retrieving Messages | ||
------------------- | ||
|
||
.. todo:: Document retrieving messages from request scope | ||
|
||
Using Messages in Templates | ||
--------------------------- | ||
|
||
.. tab-set:: | ||
|
||
.. tab-item:: Jinja2 | ||
|
||
.. code-block:: html | ||
:caption: Displaying flash messages in a Jinja2 template | ||
|
||
.. todo:: Add Jinja2 example | ||
|
||
.. tab-item:: Mako | ||
|
||
.. code-block:: html | ||
:caption: Displaying flash messages in a Mako template | ||
|
||
|
||
.. todo:: Add Mako example | ||
|
||
.. tab-item:: Mini-Jinja | ||
|
||
.. code-block:: html | ||
:caption: Displaying flash messages in a Mini-Jinja template | ||
|
||
.. todo:: Add Mini-Jinja example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters