Jinja2 cleanup.

This commit is contained in:
Nick Brassel
2023-01-14 15:37:07 +11:00
parent 2017ffa59a
commit 03c47d295e
4 changed files with 95 additions and 68 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ def load_lighting_spec(feature, version='latest'):
def _get_jinja2_env(data_templates_xap_subdir: str):
templates_dir = os.path.join(qmk.constants.QMK_FIRMWARE, 'data', 'templates', 'xap', data_templates_xap_subdir)
j2 = Environment(loader=FileSystemLoader(templates_dir), autoescape=select_autoescape())
j2 = Environment(loader=FileSystemLoader(templates_dir), autoescape=select_autoescape(), lstrip_blocks=True, trim_blocks=True)
return j2