Skip to content

Commit

Permalink
jinja loading env update
Browse files Browse the repository at this point in the history
jinja loading env update
  • Loading branch information
0xjjoyy authored May 27, 2021
1 parent 11148c3 commit 26c8760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guardrails/generate-scp-markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def to_pretty_json(value):

def get_template():
templateLoader = jinja2.FileSystemLoader(searchpath="./")
templateEnv = jinja2.Environment(loader=templateLoader)
templateEnv = jinja2.Environment(loader=templateLoader, autoescape=select_autoescape(['html', 'xml']), loader=PackageLoader('mypackage'))
templateEnv.filters['tojson_pretty']=to_pretty_json
TEMPLATE_FILE = "scp-template.md"
template = templateEnv.get_template(TEMPLATE_FILE)
Expand Down

0 comments on commit 26c8760

Please sign in to comment.