diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-01-28 11:58:38 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-01-30 13:22:18 -0600 |
commit | a3f811a6e8589fc4b47c9f3036ac1cf0c8b0e200 (patch) | |
tree | 48c1c5932b3bfc46a0188f96a7539ee2753e3df4 /mediagoblin/tools/template.py | |
parent | 1c2d01ae3ba421536d5775e5992393019714b856 (diff) | |
download | mediagoblin-a3f811a6e8589fc4b47c9f3036ac1cf0c8b0e200.tar.lz mediagoblin-a3f811a6e8589fc4b47c9f3036ac1cf0c8b0e200.tar.xz mediagoblin-a3f811a6e8589fc4b47c9f3036ac1cf0c8b0e200.zip |
Geolocation stuff, including including templates seems to be working-ish
- I'm having trouble seeing if the geolocation stuff actually works,
but plugins are included
- including a list of template hooks works, however the macro to
include them does not, so it's kinda verbose
Diffstat (limited to 'mediagoblin/tools/template.py')
-rw-r--r-- | mediagoblin/tools/template.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/tools/template.py b/mediagoblin/tools/template.py index 6e01a7dd..c76ce639 100644 --- a/mediagoblin/tools/template.py +++ b/mediagoblin/tools/template.py @@ -23,6 +23,7 @@ from mediagoblin import mg_globals from mediagoblin import messages from mediagoblin.tools import common from mediagoblin.tools.translate import get_gettext_translation +from mediagoblin.tools.pluginapi import get_hook_templates from mediagoblin.meddleware.csrf import render_csrf_form_token @@ -64,6 +65,9 @@ def get_jinja_env(template_loader, locale): template_env.filters['urlencode'] = url_quote_plus + # allow for hooking up plugin templates + template_env.globals['get_hook_templates'] = get_hook_templates + if exists(locale): SETUP_JINJA_ENVS[locale] = template_env |