Prototype the FSM feature I want to teach and test out nunjucks ability to import.

main
Zed A. Shaw 3 months ago
parent c8d47a4be2
commit 0378b2dca3
  1. 3
      templates/footer.html
  2. 16
      templates/header.html
  3. 50
      templates/todo.html

@ -0,0 +1,3 @@
</body>
<!-- not much here yet -->
</html>

@ -0,0 +1,16 @@
<!doctype html>
<html>
<head>
<script src="/alpine.js"></script>
<script src="/fsm.js"></script>
<title>Bandolier2</title>
<style>
@import "/open-props.min.css";
@import "/normalize.min.css";
</style>
<head>
</head>
<body>

@ -1,28 +1,32 @@
<!doctype html>
{% include "./header.html" %}
<html>
<head>
<script src="/alpine.js"></script>
<script src="/fsm.js"></script>
<title>Bandolier2</title>
<h1>Your TODOs</h1>
<ol>
{% for todo in todo_list %}
<li>{{ todo.task }}</li>
{% else %}
<li>No TODO Items</li>
{% endfor %}
</ol>
<style>
@import "/open-props.min.css";
@import "/normalize.min.css";
.disabled {
display: none;
}
.enabled {
display: none;
}
</style>
<head>
</head>
<body>
<h1>Your TODOs</h1>
<ol>
{% for todo in todo_list %}
<li>{{ todo.task }}</li>
{% else %}
<li>No TODO Items</li>
{% endfor %}
</ol>
</body>
</html>
<div x-state="state-1" class="disabled">
<h1>State 1</h1>
</div>
<div x-state="state-2">
<h1>State 2</h1>
</div>
{% include "./footer.html" %}

Loading…
Cancel
Save