Small fix so template plugins can see inject variables.
This commit is contained in:
parent
790a145f6c
commit
3d21dab705
1 changed files with 1 additions and 0 deletions
|
@ -489,6 +489,7 @@ def template_from_string(basedir, data, vars):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def my_lookup(*args, **kwargs):
|
def my_lookup(*args, **kwargs):
|
||||||
|
kwargs['vars'] = vars
|
||||||
return lookup(*args, basedir=basedir, **kwargs)
|
return lookup(*args, basedir=basedir, **kwargs)
|
||||||
|
|
||||||
t.globals['lookup'] = my_lookup
|
t.globals['lookup'] = my_lookup
|
||||||
|
|
Loading…
Reference in a new issue