Small fix so template plugins can see inject variables.

pull/3168/merge
Michael DeHaan 12 years ago
parent 790a145f6c
commit 3d21dab705

@ -489,6 +489,7 @@ def template_from_string(basedir, data, vars):
return data
def my_lookup(*args, **kwargs):
kwargs['vars'] = vars
return lookup(*args, basedir=basedir, **kwargs)
t.globals['lookup'] = my_lookup

Loading…
Cancel
Save