diff options
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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): |