Make instance globally accessible
This commit is contained in:
parent
967d390ce7
commit
1692ea7451
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ def execjinja2(instance):
|
||||||
kwargs['article'] = instance
|
kwargs['article'] = instance
|
||||||
elif type(instance) is contents.Page:
|
elif type(instance) is contents.Page:
|
||||||
kwargs['page'] = instance
|
kwargs['page'] = instance
|
||||||
|
kwargs['instance'] = instance # avoid using outside common elements
|
||||||
|
|
||||||
instance._content = jinja2_template.render(**kwargs)
|
instance._content = jinja2_template.render(**kwargs)
|
||||||
|
|
||||||
|
|
Reference in a new issue