summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 27dfb33..2cd30dc 100644
--- a/utils.py
+++ b/utils.py
@@ -28,7 +28,11 @@ def templated(template=None):
if template_name is None:
template_name = request.endpoint \
.replace('.', '/') + '.html'
- ctx = f(*args, **kwargs)
+
+ ctx = {
+ 'app': current_app,
+ }
+ ctx.update(f(*args, **kwargs))
if ctx is None:
ctx = {}
elif not isinstance(ctx, dict):