From 0abf83d77e76ac4c3ce9f4a298f6dfc10f871433 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Thu, 1 Aug 2024 09:36:33 +0000 Subject: Thu, Aug 1, 2024, 2:36 AM -07:00 --- wk9/lect/cookies/templates/index.html | 15 +++++++++++++++ wk9/lect/cookies/templates/layout.html | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 wk9/lect/cookies/templates/index.html create mode 100644 wk9/lect/cookies/templates/layout.html (limited to 'wk9/lect/cookies/templates') 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 @@ + + + + + + hello + + + {% block body %}{% endblock %} + + -- cgit v1.2.3