Results
Summary
{{ page.summary }}
diff --git a/flaskdemo.py b/flaskdemo.py index 352138f..ca53fe7 100644 --- a/flaskdemo.py +++ b/flaskdemo.py @@ -13,7 +13,7 @@ def home(): @app.route('/about') def about(): - return "I am still working on this" + return render_template("about.html") @app.route('/search', methods=['POST', 'GET']) diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..e8dfdb4 --- /dev/null +++ b/templates/about.html @@ -0,0 +1,8 @@ +{% extends "layout.html" %} +{% block title %}About{% endblock %} +{% block content %} +
This is the about page for practical 10
+ +{% endblock %} diff --git a/templates/layout.html b/templates/layout.html index 1bb2c57..6259dba 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -10,6 +10,7 @@{{ page.summary }}