WIP: Expand the developer documentation #27
1 changed files with 2 additions and 1 deletions
|
|
@ -85,6 +85,7 @@ def get_jinja_variable_to_param(
|
|||
):
|
||||
try:
|
||||
env = SandboxedEnvironment(loader=DictLoader({"tmpl": jinja_text}))
|
||||
env.add_extension('jinja2.ext.do')
|
||||
env.filters = functions
|
||||
parsed_content = Parser(env, jinja_text, "", "").parse()
|
||||
|
||||
|
|
@ -100,7 +101,7 @@ def get_jinja_variable_to_param(
|
|||
for g in parsed_content.find_all(Getattr):
|
||||
variables.add(recurse_getattr(g))
|
||||
except TemplateSyntaxError as err:
|
||||
msg = _('error in jinja "{0}" for the variable "{1}": {2}').format(
|
||||
msg = _('error for the variable "{1}" in jinja "{0}": {2}').format(
|
||||
jinja_text, current_path, err
|
||||
)
|
||||
raise DictConsistencyError(msg, 39, xmlfiles) from err
|
||||
|
|
|
|||
Loading…
Reference in a new issue