summaryrefslogtreecommitdiff
path: root/talermerchantdemos/httpcommon/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'talermerchantdemos/httpcommon/__init__.py')
-rw-r--r--talermerchantdemos/httpcommon/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/talermerchantdemos/httpcommon/__init__.py b/talermerchantdemos/httpcommon/__init__.py
index 785494b..c315929 100644
--- a/talermerchantdemos/httpcommon/__init__.py
+++ b/talermerchantdemos/httpcommon/__init__.py
@@ -152,7 +152,6 @@ all_languages = {
}
-
##
# Make the environment available into templates.
#
@@ -177,11 +176,16 @@ def make_utility_processor(pagename):
# returns the YYYY-MM-DD date format.
return timestamp.strftime("%Y-%b-%d")
+ def static(name):
+ return flask.url_for("static", filename=name)
+
return dict(
env=env,
prettydate=prettydate,
getactive=getactive,
getlang=getlang,
all_languages=all_languages,
+ static=static,
)
+
return utility_processor