Skip to content

Commit

Permalink
Merge pull request #19 from truenas/jinja-ext
Browse files Browse the repository at this point in the history
jinja2: enable extensions
  • Loading branch information
stavros-k authored May 17, 2024
2 parents dd6b2a8 + 9349f0c commit 28fdf2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog_templating/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def render_templates(app_version_path: str, test_values: dict) -> dict:

template_libs = import_library(os.path.join(template_path, 'library'), app_details)
file_loader = FileSystemLoader(template_path)
env = Environment(loader=file_loader)
env = Environment(loader=file_loader, extensions=["jinja2.ext.do", "jinja2.ext.loopcontrols", "jinja2.ext.debug"])
rendered_templates = {}
for to_render_file in filter(
lambda f: f.is_file() and f.name.endswith('.yaml'), pathlib.Path(template_path).iterdir()
Expand Down

0 comments on commit 28fdf2d

Please sign in to comment.