pyfarm.agent.http.core.template module¶
Template¶
Interface methods for working with the Jinja template engine.
- class pyfarm.agent.http.core.template.InMemoryCache[source]¶
Bases: jinja2.bccache.BytecodeCache
Caches Jinja templates into memory after they have been loaded and compiled.
- cache = {}¶
- class pyfarm.agent.http.core.template.DeferredTemplate[source]¶
Bases: jinja2.environment.Template
Overrides the default PackageLoader so we can produced the rendered result as a deferred call.
- class pyfarm.agent.http.core.template.Environment(**kwargs)[source]¶
Bases: jinja2.environment.Environment
Implementation of Jinja’s _Environment class which reads from our configuration object and establishes the default functions we can use in a template.
- template_class¶
alias of DeferredTemplate