This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/c_jinja_global
in repository https://gitbox.apache.org/repos/asf/allura.git

commit f751ab96d62d6e993e074ef7c82d34e553855db2
Author: Dave Brondsema <dbronds...@slashdotmedia.com>
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

Reply via email to