jinja2.environment.TemplateModule

class jinja2.environment.TemplateModule(template, context)[source]

Represents an imported template. All the exported names of the template are available as attributes on this object. Additionally converting it into an unicode- or bytestrings renders the contents.

Methods

__init__(template, context)