module documentation
provides runtime services for templates, including Context, Namespace, and various helper functions.
Class |
|
Undocumented |
Class |
|
Provides runtime namespace, output buffer, and various callstacks for templates. |
Class |
|
A magic loop variable. Automatically accessible in any ``% for`` block. |
Class |
|
a stack for LoopContexts that implements the context manager protocol to automatically pop off the top of the stack on context exit |
Class |
|
A :class:`.Namespace` specific to a Python module instance. |
Class |
|
Provides access to collections of rendering methods, which can be local, from other templates, or from imported modules. |
Class |
|
A :class:`.Namespace` specific to a :class:`.Template` instance. |
Class |
|
Represents an undefined value in a template. |
Function | capture |
Execute the given template def, capturing the output into a buffer. |
Function | supports |
Apply a caller_stack compatibility decorator to a plain Python function. |
Constant | STOP |
Undocumented |
Constant | UNDEFINED |
Undocumented |
Class | _ |
Undocumented |
Function | _decorate |
Undocumented |
Function | _decorate |
Undocumented |
Function | _exec |
execute a rendering callable given the callable, a Context, and optional explicit arguments |
Function | _include |
locate the template from the given uri and include it in the current output. |
Function | _inherit |
called by the _inherit method in template modules to set up the inheritance chain at the start of a template's execution. |
Function | _kwargs |
Undocumented |
Function | _kwargs |
Undocumented |
Function | _lookup |
Undocumented |
Function | _populate |
Undocumented |
Function | _render |
create a Context and return the string output of the given template and template callable. |
Function | _render |
Undocumented |
Function | _render |
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.
called by the _inherit method in template modules to set up the inheritance chain at the start of a template's execution.