1
Fork 0

Make instance globally accessible

This commit is contained in:
Jake Howard 2017-01-13 09:07:12 +00:00
parent 967d390ce7
commit 1692ea7451

View file

@ -30,6 +30,7 @@ def execjinja2(instance):
kwargs['article'] = instance
elif type(instance) is contents.Page:
kwargs['page'] = instance
kwargs['instance'] = instance # avoid using outside common elements
instance._content = jinja2_template.render(**kwargs)