summaryrefslogtreecommitdiff
path: root/wk9/lect/hello
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 09:03:28 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 09:03:28 +0000
commit4f1d0fddc07895c2a8848e6825d4b29898a4267b (patch)
tree4fe32ab4e2fab89583f8bbdc8ed2c5a68c2007f9 /wk9/lect/hello
parent403e83d7d5792448029e18522680076f4acabb94 (diff)
Tue, Jul 9, 2024, 2:03 AM -07:00
Diffstat (limited to 'wk9/lect/hello')
-rw-r--r--wk9/lect/hello/templates/greet.html16
-rw-r--r--wk9/lect/hello/templates/index.html14
2 files changed, 11 insertions, 19 deletions
diff --git a/wk9/lect/hello/templates/greet.html b/wk9/lect/hello/templates/greet.html
index 7e90e67..104074f 100644
--- a/wk9/lect/hello/templates/greet.html
+++ b/wk9/lect/hello/templates/greet.html
@@ -1,11 +1,7 @@
-<!DOCTYPE html>
+{% extends "layout.html" %}
-<html lang="en">
- <head>
- <meta name="viewport" content="initial-scale=1, width=device-width">
- <title>hello</title>
- </head>
- <body>
- hello, {{ name }}
- </body>
-</html>
+{% block body}
+
+ hello, {{ name }}
+
+{% endblock %}
diff --git a/wk9/lect/hello/templates/index.html b/wk9/lect/hello/templates/index.html
index 4ce1e85..0ada4ef 100644
--- a/wk9/lect/hello/templates/index.html
+++ b/wk9/lect/hello/templates/index.html
@@ -1,14 +1,10 @@
-<!DOCTYPE html>
+{% extends "layout.html" %}
+
+{% block body}
-<html lang="en">
- <head>
- <meta name="viewport" content="initial-scale=1, width=device-width">
- <title>hello</title>
- </head>
- <body>
<form action="/greet" method="get">
<input autocomplete="off" autofocus name="name" placeholder="Name" type="text">
<button type="submit">Greet</button>
</from>
- </body>
-</html>
+
+{% endblock %}