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 = {}
clear()[source]
load_bytecode(bucket)[source]
dump_bytecode(bucket)[source]
class pyfarm.agent.http.core.template.Environment(**kwargs)[source]

Bases: jinja2.environment.Environment

Implementation of jinja2.Environment class which reads from our configuration object and establishes the default functions we can use in a template.