Skip to content

Commit

Permalink
Use Jinja for SH installers
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Nov 9, 2024
1 parent 9a10ec5 commit 9188b52
Show file tree
Hide file tree
Showing 7 changed files with 189 additions and 284 deletions.
4 changes: 2 additions & 2 deletions constructor/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,10 @@ def yamlize(data, directory, content_filter):
if ('{{' not in data) and ('{%' not in data):
raise UnableToParse(original=e)
try:
from constructor.jinja import render_jinja
from constructor.jinja import render_jinja_for_input_file
except ImportError as ex:
raise UnableToParseMissingJinja2(original=ex)
data = render_jinja(data, directory, content_filter)
data = render_jinja_for_input_file(data, directory, content_filter)
return yaml.load(data)


Expand Down
Loading

0 comments on commit 9188b52

Please sign in to comment.