summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wk9/lect/hello/app.py3
-rw-r--r--wk9/lect/hello/templates/index.html2
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>