Small fix so template plugins can see inject variables.

This commit is contained in:
Michael DeHaan 2013-06-10 14:23:48 -04:00
parent 790a145f6c
commit 3d21dab705

View file

@ -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