Fixes #4608 add lookup to template globals to make plugins work again
This commit is contained in:
parent
4f13967386
commit
214b0b052c
1 changed files with 2 additions and 0 deletions
|
@ -504,6 +504,8 @@ def template_from_string(basedir, data, vars, fail_on_undefined=False):
|
|||
else:
|
||||
return data
|
||||
|
||||
t.globals['lookup'] = my_lookup
|
||||
|
||||
try:
|
||||
return t.render(vars)
|
||||
except jinja2.exceptions.UndefinedError:
|
||||
|
|
Loading…
Reference in a new issue