Attributes
- LOADER
LOADER = None
Method summary
- __init__(self, code, file = '(string)', loader = None)
- render(self, context = { }, blocks = [ ])
- render_seq(self, seq, context, blocks = [ ], superblock = None)
- set_loader(cls, template_loader)
Methods
- __init__(self, code, file = '(string)', loader = None)
Load new template.
code : template code file : filename of template (optional, for error messages) loader : template loader to use for {%extends%}, {%include%}
- render(self, context = { }, blocks = [ ])
Render template with the specified context.
context : dictionary of variables and values blocks : internal use only
- render_seq(self, seq, context, blocks = [ ], superblock = None)
Render a SEQ node -- internal use only
- set_loader(cls, template_loader)
specify default template loader