diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-11-19 08:31:37 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-11-19 08:31:37 -0600 |
commit | 6950c6c77c2daf4a47810e05a7c3f64f8995059d (patch) | |
tree | 0e26f92a4f32e1b845f440ae5cf754e91443b79b /mediagoblin/tools/template.py | |
parent | 817066506d846d06d0489dfb42b8200b86f61153 (diff) | |
download | mediagoblin-6950c6c77c2daf4a47810e05a7c3f64f8995059d.tar.lz mediagoblin-6950c6c77c2daf4a47810e05a7c3f64f8995059d.tar.xz mediagoblin-6950c6c77c2daf4a47810e05a7c3f64f8995059d.zip |
Adding app_config and global_config to the template environment
Diffstat (limited to 'mediagoblin/tools/template.py')
-rw-r--r-- | mediagoblin/tools/template.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/tools/template.py b/mediagoblin/tools/template.py index 905a36df..a0eaabe7 100644 --- a/mediagoblin/tools/template.py +++ b/mediagoblin/tools/template.py @@ -55,6 +55,8 @@ def get_jinja_env(template_loader, locale): template_env.globals['fetch_messages'] = messages.fetch_messages template_env.globals['gridify_list'] = gridify_list template_env.globals['gridify_cursor'] = gridify_cursor + template_env.globals['app_config'] = mg_globals.app_config + template_env.globals['global_config'] = mg_globals.global_config if exists(locale): SETUP_JINJA_ENVS[locale] = template_env |