Commit 3d21dab7 by Michael DeHaan

Small fix so template plugins can see inject variables.

parent 790a145f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment