From da2882e6cbfb0e267475a4440a8efb486ff0f1b6 Mon Sep 17 00:00:00 2001 From: Marian Sigler Date: Thu, 27 Sep 2012 18:34:57 +0200 Subject: add list of sites to /about --- utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'utils.py') 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): -- cgit v1.2.3-1-g7c22