Adding app_config and global_config to the template environment

This commit is contained in:
Christopher Allan Webber 2011-11-19 08:31:37 -06:00
parent 817066506d
commit 6950c6c77c

View File

@ -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