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 %} +

James is cool.

+

Practical 10

+

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 @@
{% block content %}{% endblock %} diff --git a/templates/results.html b/templates/results.html index ef86cda..4e9031d 100644 --- a/templates/results.html +++ b/templates/results.html @@ -2,8 +2,8 @@ {% block title %}Wikipedia Results{% endblock %} {% block content %} {% if page %} -{# TODO: add page title and more... #} +

Results

Summary

{{ page.summary }}

{{ page.title }}