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 IViewEnvironment(ABC): (source)
Known subclasses: orionis.view.environment.ViewEnvironment
Contract for the view-environment wrapper.
The implementation is the sole authority for configuring the underlying template engine's environment (loaders, caches, globals, filters, tests, and extensions). No other class should access the engine environment directly.
| Method | add |
Register a Jinja2 extension class with the environment. |
| Method | add |
Register a filter callable that templates can apply with |. |
| Method | add |
Register a global variable or callable available in all templates. |
| Method | add |
Register a test callable used in Jinja2 is expressions. |
| Method | get |
Return the underlying Jinja2 Environment instance. |
| Class Variable | __slots__ |
Undocumented |
overridden in
orionis.view.environment.ViewEnvironmentReturn the underlying Jinja2 Environment instance.
Access is intentionally restricted to this method so that all configuration changes flow through the typed helpers above.
| Returns | |
jinja2.Environment | The configured Jinja2 environment. |