summaryrefslogtreecommitdiff
path: root/wk9/lect/cookies/templates
diff options
context:
space:
mode:
Diffstat (limited to 'wk9/lect/cookies/templates')
-rw-r--r--wk9/lect/cookies/templates/index.html15
-rw-r--r--wk9/lect/cookies/templates/layout.html11
2 files changed, 26 insertions, 0 deletions
diff --git a/wk9/lect/cookies/templates/index.html b/wk9/lect/cookies/templates/index.html
new file mode 100644
index 0000000..f902b58
--- /dev/null
+++ b/wk9/lect/cookies/templates/index.html
@@ -0,0 +1,15 @@
+{% extends "layout.html" %}
+
+{% block body %}
+
+ {% if name %}
+
+ You are logged in as {{ name }}.
+
+ {% else %}
+
+ You are not logged in.
+
+ {% endif %}
+
+{% endblock %}
diff --git a/wk9/lect/cookies/templates/layout.html b/wk9/lect/cookies/templates/layout.html
new file mode 100644
index 0000000..c9965f4
--- /dev/null
+++ b/wk9/lect/cookies/templates/layout.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>
+ {% block body %}{% endblock %}
+ </body>
+</html>