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 IViewFactory(ABC): (source)
Known subclasses: orionis.view.factory.ViewFactory
Contract for the view factory.
Callers use this interface to render named templates and receive
fully formed HTMLResponse objects ready to return from
HTTP controllers.
| Method | make |
Prepare a template render as an awaitable, chainable response. |
| Class Variable | __slots__ |
Undocumented |
overridden in
orionis.view.factory.ViewFactoryPrepare a template render as an awaitable, chainable response.
| Parameters | |
template:str | Template name using dot notation (e.g. 'users.index') or a direct path relative to a configured template directory. |
**context:Any | Keyword arguments are forwarded as template variables. |
| Returns | |
PendingView | Awaitable proxy that resolves to an HTMLResponse and
accepts chained response mutators such as withFlash(). |
| Raises | |
ViewTemplateNotFoundException | When the requested template file cannot be located. |
ViewRenderException | When the template engine fails during rendering. |