Fixes #4608 add lookup to template globals to make plugins work again

pull/4651/merge
James Tanner 11 years ago
parent 4f13967386
commit 214b0b052c

@ -504,6 +504,8 @@ def template_from_string(basedir, data, vars, fail_on_undefined=False):
else: else:
return data return data
t.globals['lookup'] = my_lookup
try: try:
return t.render(vars) return t.render(vars)
except jinja2.exceptions.UndefinedError: except jinja2.exceptions.UndefinedError:

Loading…
Cancel
Save