Class | Context |
Provides runtime namespace, output buffer, and various callstacks for templates. |
Class | LoopContext |
A magic loop variable. Automatically accessible in any % for block. |
Class | ModuleNamespace |
A .Namespace specific to a Python module instance. |
Class | Namespace |
Provides access to collections of rendering methods, which can be local, from other templates, or from imported modules. |
Class | TemplateNamespace |
A .Namespace specific to a .Template instance. |
Class | Undefined |
Represents an undefined value in a template. |
Function | capture |
Execute the given template def, capturing the output into a buffer. |
Function | supports_caller |
Apply a caller_stack compatibility decorator to a plain Python function. |
Constant | STOP_RENDERING |
Undocumented |
Constant | UNDEFINED |
Undocumented |
Class | _NSAttr |
Undocumented |
Class | CallerStack |
Undocumented |
Class | LoopStack |
a stack for LoopContexts that implements the context manager protocol to automatically pop off the top of the stack on context exit |
Function | _decorate_inline |
Undocumented |
Function | _decorate_toplevel |
Undocumented |
Function | _exec_template |
execute a rendering callable given the callable, a Context, and optional explicit arguments |
Function | _include_file |
locate the template from the given uri and include it in the current output. |
Function | _inherit_from |
called by the _inherit method in template modules to set up the inheritance chain at the start of a template's execution. |
Function | _kwargs_for_callable |
Undocumented |
Function | _kwargs_for_include |
Undocumented |
Function | _lookup_template |
Undocumented |
Function | _populate_self_namespace |
Undocumented |
Function | _render |
create a Context and return the string output of the given template and template callable. |
Function | _render_context |
Undocumented |
Function | _render_error |
Undocumented |
Execute the given template def, capturing the output into a buffer.
See the example in :ref:`namespaces_python_modules`.
Apply a caller_stack compatibility decorator to a plain Python function.
See the example in :ref:`namespaces_python_modules`.
execute a rendering callable given the callable, a Context, and optional explicit arguments
the contextual Template will be located if it exists, and the error handling options specified on that Template will be interpreted here.