Commit 4d5ad276 authored by Ad Schellevis's avatar Ad Schellevis

add jinja2.ext.do extension to Jinja environment

parent 0c398e10
......@@ -56,7 +56,8 @@ class Template(object):
# setup jinja2 environment
self._template_dir = os.path.dirname(os.path.abspath(__file__))+'/../templates/'
self._j2_env = jinja2.Environment(loader=jinja2.FileSystemLoader(self._template_dir), trim_blocks=True)
self._j2_env = jinja2.Environment(loader=jinja2.FileSystemLoader(self._template_dir), trim_blocks=True,
extensions=["jinja2.ext.do",])
def _readManifest(self, filename):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment