summaryrefslogtreecommitdiff
path: root/wk9/lect/hello
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 08:36:18 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 08:36:18 +0000
commit801b1ddcdb04721b290bc600b55f65ca3d8b5743 (patch)
tree765869b5a9cdb973c8cbcd99a599e87f9fb07331 /wk9/lect/hello
parentbaefe9643c06efe7cb555802a32787fb4076ee79 (diff)
Tue, Jul 9, 2024, 1:36 AM -07:00
Diffstat (limited to 'wk9/lect/hello')
-rw-r--r--wk9/lect/hello/app.py7
-rw-r--r--wk9/lect/hello/templates/index.html11
2 files changed, 18 insertions, 0 deletions
diff --git a/wk9/lect/hello/app.py b/wk9/lect/hello/app.py
new file mode 100644
index 0000000..bb88884
--- /dev/null
+++ b/wk9/lect/hello/app.py
@@ -0,0 +1,7 @@
+from flask import Flask, render_template, request
+
+app = Flask(__name__)
+
+@app.route("/")
+def index():
+ return "hello, world"
diff --git a/wk9/lect/hello/templates/index.html b/wk9/lect/hello/templates/index.html
new file mode 100644
index 0000000..28aaf9f
--- /dev/null
+++ b/wk9/lect/hello/templates/index.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+
+<html lang="en">
+ <head>
+ <meta name="viewport" content="initial-scale=1, width=device-width">
+ <title>hello</title>
+ </head>
+ <body>
+ Hello, World
+ </body>
+</html>