From 1bea8d8d63dd911fb5effa303522cd7db82f3d76 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Tue, 9 Jul 2024 08:43:24 +0000 Subject: Tue, Jul 9, 2024, 1:43 AM -07:00 --- wk9/lect/hello/app.py | 3 ++- wk9/lect/hello/templates/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'wk9') diff --git a/wk9/lect/hello/app.py b/wk9/lect/hello/app.py index de6ec44..7898011 100644 --- a/wk9/lect/hello/app.py +++ b/wk9/lect/hello/app.py @@ -4,4 +4,5 @@ app = Flask(__name__) @app.route("/") def index(): - return render_template("index.html") + name = request.args["name"] + return render_template("index.html", placeholder=name) diff --git a/wk9/lect/hello/templates/index.html b/wk9/lect/hello/templates/index.html index 7e90e67..9870414 100644 --- a/wk9/lect/hello/templates/index.html +++ b/wk9/lect/hello/templates/index.html @@ -6,6 +6,6 @@ hello - hello, {{ name }} + hello, {{ placeholder }} -- cgit v1.2.3