From 47652149374cf253554a3d11b01ef0a304a11186 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 8 Jul 2016 20:04:32 +0200 Subject: abstract use case --- app.py | 1 + config-template.py | 3 ++- templates/index.html | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 0beab92..bd9f087 100644 --- a/app.py +++ b/app.py @@ -546,6 +546,7 @@ def page(num): perpage=perpage, jokes=jokes, abusemail=config['abusemail'], + title=config['title'], user=user)) resp.headers.set('X-SmoothState-Location', request.path + "?" + diff --git a/config-template.py b/config-template.py index 347e5c9..f673bff 100644 --- a/config-template.py +++ b/config-template.py @@ -2,5 +2,6 @@ config = { 'secret_key': b'', 'debug': False, 'superuser': 'admin', - 'abusemail': 'admin@host.example.com' + 'abusemail': 'admin@host.example.com', + 'title': 'My awesome voting page' } diff --git a/templates/index.html b/templates/index.html index 812bf55..ae1eaa4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,7 +2,7 @@ - Lehrerspruch-Wahlplattform + {{ title }} @@ -15,7 +15,7 @@