This is an automated email from the ASF dual-hosted git repository.
dill0wn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new cff9c2913 make "c" a template global too
cff9c2913 is described below
commit cff9c29134a23afd4cedb814c99caf2f59da11b3
Author: Dave Brondsema <[email protected]>
AuthorDate: Wed Aug 31 14:56:30 2022 -0400
make "c" a template global too
---
Allura/allura/config/app_cfg.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/Allura/allura/config/app_cfg.py b/Allura/allura/config/app_cfg.py
index 9d2257952..54b72eb48 100644
--- a/Allura/allura/config/app_cfg.py
+++ b/Allura/allura/config/app_cfg.py
@@ -114,6 +114,7 @@ class AlluraJinjaRenderer(JinjaRenderer):
'hasattr': hasattr,
'h': helpers,
'g': app_globals,
+ 'c': tg.tmpl_context,
'request': tg.request,
})
config['tg.app_globals'].jinja2_env = jinja2_env # TG doesn't need
this, but we use g.jinja2_env a lot