From 0378b2dca3f76195ecb713296b6ce20ceeba1877 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Wed, 21 Feb 2024 14:43:37 -0500 Subject: [PATCH] Prototype the FSM feature I want to teach and test out nunjucks ability to import. --- templates/footer.html | 3 +++ templates/header.html | 16 ++++++++++++++ templates/todo.html | 50 +++++++++++++++++++++++-------------------- 3 files changed, 46 insertions(+), 23 deletions(-) create mode 100644 templates/footer.html create mode 100644 templates/header.html diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..88a7115 --- /dev/null +++ b/templates/footer.html @@ -0,0 +1,3 @@ + + + diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..f4dd15f --- /dev/null +++ b/templates/header.html @@ -0,0 +1,16 @@ + + + + + + + Bandolier2 + + + + + + diff --git a/templates/todo.html b/templates/todo.html index 890bf45..f0e4de6 100644 --- a/templates/todo.html +++ b/templates/todo.html @@ -1,28 +1,32 @@ - +{% include "./header.html" %} - - - - - Bandolier2 +

Your TODOs

+ +
    + {% for todo in todo_list %} +
  1. {{ todo.task }}
  2. + {% else %} +
  3. No TODO Items
  4. + {% endfor %} +
- - - - -

Your TODOs

- -
    - {% for todo in todo_list %} -
  1. {{ todo.task }}
  2. - {% else %} -
  3. No TODO Items
  4. - {% endfor %} -
- - +
+

State 1

+
+ +
+

State 2

+
+ + +{% include "./footer.html" %}