aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/template.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-11-19 08:33:29 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-11-19 08:33:29 -0600
commit53bc39755bf22fe8eebf06b051018eba111a64e7 (patch)
tree8449a646bb96455c310e65434a3fc9fb9ad1c347 /mediagoblin/tools/template.py
parent6950c6c77c2daf4a47810e05a7c3f64f8995059d (diff)
downloadmediagoblin-53bc39755bf22fe8eebf06b051018eba111a64e7.tar.lz
mediagoblin-53bc39755bf22fe8eebf06b051018eba111a64e7.tar.xz
mediagoblin-53bc39755bf22fe8eebf06b051018eba111a64e7.zip
Add app_config and global_config to the template environment
Diffstat (limited to 'mediagoblin/tools/template.py')
-rw-r--r--mediagoblin/tools/template.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mediagoblin/tools/template.py b/mediagoblin/tools/template.py
index a0eaabe7..0986761b 100644
--- a/mediagoblin/tools/template.py
+++ b/mediagoblin/tools/template.py
@@ -52,6 +52,7 @@ def get_jinja_env(template_loader, locale):
# All templates will know how to ...
# ... fetch all waiting messages and remove them from the queue
# ... construct a grid of thumbnails or other media
+ # ... have access to the global and app config
template_env.globals['fetch_messages'] = messages.fetch_messages
template_env.globals['gridify_list'] = gridify_list
template_env.globals['gridify_cursor'] = gridify_cursor