Use strict undefined (#633)
This commit is contained in:
parent
c621ef8a8d
commit
849c12fe88
@ -32,6 +32,7 @@ def outputfile_compiler(output_file: OutputTemplate) -> str:
|
|||||||
trim_blocks=True,
|
trim_blocks=True,
|
||||||
lstrip_blocks=True,
|
lstrip_blocks=True,
|
||||||
loader=jinja2.FileSystemLoader(templates_folder),
|
loader=jinja2.FileSystemLoader(templates_folder),
|
||||||
|
undefined=jinja2.StrictUndefined,
|
||||||
)
|
)
|
||||||
# Load the body first so we have a compleate list of imports needed.
|
# Load the body first so we have a compleate list of imports needed.
|
||||||
body_template = env.get_template("template.py.j2")
|
body_template = env.get_template("template.py.j2")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user