From: Christopher Allan Webber Date: Sat, 19 Nov 2011 14:31:37 +0000 (-0600) Subject: Adding app_config and global_config to the template environment X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6950c6c77c2daf4a47810e05a7c3f64f8995059d;p=mediagoblin.git Adding app_config and global_config to the template environment --- 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