diff --git a/senju/main.py b/senju/main.py index 1b28e29..486261b 100644 --- a/senju/main.py +++ b/senju/main.py @@ -2,10 +2,13 @@ from flask import Flask, render_template app = Flask(__name__) - @app.route("/") def index(): - context = { - "number": 1337 - } - return render_template("index.jinja", context=context, title="Senju") + return render_template("index.jinja", title="Senju", active_page="home") + +@app.route("/haiku") +def haiku_page(): + return render_template("haiku.jinja", title="Haiku of the Day", active_page="haiku") + + + diff --git a/senju/templates/base.jinja b/senju/templates/base.jinja index 8ccb184..7bd2a1f 100644 --- a/senju/templates/base.jinja +++ b/senju/templates/base.jinja @@ -27,9 +27,9 @@ Start - Haiku - + Haiku + Information diff --git a/senju/templates/haiku.jinja b/senju/templates/haiku.jinja new file mode 100644 index 0000000..e97b557 --- /dev/null +++ b/senju/templates/haiku.jinja @@ -0,0 +1,18 @@ +{% extends "base.jinja" %} + +{% block content %} +
+ An old silent pond
+ A frog jumps into the pond—
+ Splash! Silence again.
+