From ba1d34edd67af732769a3dd7c914c8b342e51729 Mon Sep 17 00:00:00 2001 From: Keith Brafford Date: Tue, 12 Jun 2012 14:16:23 -0300 Subject: [PATCH 1/2] added configurable page title --- hello/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello/templates/base.html b/hello/templates/base.html index 469380f..3dacb09 100644 --- a/hello/templates/base.html +++ b/hello/templates/base.html @@ -4,7 +4,7 @@ - Hello Flask + {{ page_title }} From 1b74181655f6c4564a2a6950134c734fa34fe1b2 Mon Sep 17 00:00:00 2001 From: Keith Brafford Date: Tue, 12 Jun 2012 14:17:08 -0300 Subject: [PATCH 2/2] added configurable page title --- hello/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello/views.py b/hello/views.py index 263d4ea..6814f57 100644 --- a/hello/views.py +++ b/hello/views.py @@ -16,4 +16,4 @@ def index(): db.session.commit() return redirect(url_for('index')) comments = Comment.query.order_by(db.desc(Comment.timestamp)) - return render_template('index.html', comments=comments, form=form) + return render_template('index.html', page_title = "Hello, Flask!", comments=comments, form=form)