diff options
| author | 2014-03-09 03:14:40 +0100 | |
|---|---|---|
| committer | 2014-03-09 03:14:40 +0100 | |
| commit | fa50632a9d87c3989566fed3e49c160a132e0d14 (patch) | |
| tree | 81f58cc0dcfbb34710856b59c034bc47c53d91dc /nikola/plugins/template/jinja.py | |
| parent | 2828399ba5cbb14502b023d4de1ba02f13dd5055 (diff) | |
Imported Upstream version 6.4.0upstream/6.4.0
Diffstat (limited to 'nikola/plugins/template/jinja.py')
| -rw-r--r-- | nikola/plugins/template/jinja.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nikola/plugins/template/jinja.py b/nikola/plugins/template/jinja.py index 17c33d4..f14adfe 100644 --- a/nikola/plugins/template/jinja.py +++ b/nikola/plugins/template/jinja.py @@ -61,6 +61,11 @@ class JinjaTemplates(TemplateSystem): self.lookup.loader = jinja2.FileSystemLoader(directories, encoding='utf-8') + def set_site(self, site): + """Sets the site.""" + self.site = site + self.lookup.filters.update(self.site.config['TEMPLATE_FILTERS']) + def render_template(self, template_name, output_name, context): """Render the template into output_name using context.""" if jinja2 is None: |
