diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-07-09 08:43:24 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-07-09 08:43:24 +0000 |
commit | 1bea8d8d63dd911fb5effa303522cd7db82f3d76 (patch) | |
tree | 4ba177a62538fd5599029671a36a5f4aefdbd5b3 | |
parent | 29d17fb848fa7dcab24b434e57d08c32e8ebf4fe (diff) |
Tue, Jul 9, 2024, 1:43 AM -07:00
-rw-r--r-- | wk9/lect/hello/app.py | 3 | ||||
-rw-r--r-- | wk9/lect/hello/templates/index.html | 2 |
2 files changed, 3 insertions, 2 deletions
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 @@ <title>hello</title> </head> <body> - hello, {{ name }} + hello, {{ placeholder }} </body> </html> |