jinja2_adapters¶
Functions
gravatar_id (value) |
Computes the gravatar identifier for a given value (normally email) Used for jinja filter. |
-
remoteappmanager.jinja2_adapters.
gravatar_id
(value)[source]¶ Computes the gravatar identifier for a given value (normally email) Used for jinja filter.
Classes
Jinja2LoaderAdapter (env) |
Adapts the Jinja2 environment to act as a loader as desired by tornado. |
Jinja2TemplateAdapter (template) |
Adapts the Jinja template interface to act as a tornado template. |
-
class
remoteappmanager.jinja2_adapters.
Jinja2LoaderAdapter
(env)[source]¶ Bases:
object
Adapts the Jinja2 environment to act as a loader as desired by tornado.
The class uses duck typing to implement the interface of tornado.BaseLoader and relies on jinja caching to hold the premade templates.
Initializes the adapter.
Parameters: env (Environment) – the jinja2 environment -
load
(name, parent_path=None)[source]¶ Loads the template with a given name.
Parameters: Returns: - Jinja2TemplateAdapter object, adapting a jinja template into a tornado
- template interface
-