summaryrefslogtreecommitdiff
path: root/wk9/lect/hello/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'wk9/lect/hello/app.py')
-rw-r--r--wk9/lect/hello/app.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/wk9/lect/hello/app.py b/wk9/lect/hello/app.py
index 1368586..635671d 100644
--- a/wk9/lect/hello/app.py
+++ b/wk9/lect/hello/app.py
@@ -4,5 +4,10 @@ app = Flask(__name__)
@app.route("/")
def index():
+ return render_template("index.html")
+
+
+@app.route("/greet")
+def greet():
name = request.args.get("name", "world")
- return render_template("index.html", name=name)
+ return render_template("greet.html", name=name)