Commit 201c20ca authored by Frank Wall's avatar Frank Wall Committed by Franco Fichtner

enable jinja2 loopcontrols extension

(cherry picked from commit fe55eb2d)
parent 1fc10738
...@@ -54,7 +54,7 @@ class Template(object): ...@@ -54,7 +54,7 @@ class Template(object):
# setup jinja2 environment # setup jinja2 environment
self._template_dir = os.path.dirname(os.path.abspath(__file__)) + '/../templates/' 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", ]) extensions=["jinja2.ext.do", "jinja2.ext.loopcontrols"])
@staticmethod @staticmethod
def _read_manifest(filename): def _read_manifest(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