THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class CsrfExtension(Extension): (source)
Provide the {% csrf %} statement tag.
The tag is a zero-argument shortcut for {{ csrf_field() }}: it renders the hidden input holding the current CSRF token, so forms need no explicit call to the template global.
| Async Method | _render |
Render the hidden CSRF input through the csrf_field global. |
| Method | parse |
Compile the {% csrf %} tag into an output node. |
| Class Variable | tags |
Template tag names recognized by this Jinja extension. |
Render the hidden CSRF input through the csrf_field global.
| Returns | |
markupsafe.Markup | Safe HTML markup with the hidden input. |
| Raises | |
orionis.view.exceptions.ViewRenderException | When the csrf_field template global is not registered. |