diff --git a/frontend.py b/frontend.py index f5445e5..1892ad5 100755 --- a/frontend.py +++ b/frontend.py @@ -80,7 +80,7 @@ def login_post(): @view('template/user-facing.tpl') def city_page(city): # :todo how can we transfer the city name to the wrapper template? - pass + return dict(title=city) @get('/settings') diff --git a/template/wrapper.tpl b/template/wrapper.tpl index d9a349a..43d8f7e 100644 --- a/template/wrapper.tpl +++ b/template/wrapper.tpl @@ -13,6 +13,7 @@
+ {{get('title', '')}} % if defined('error'):