mirror of
https://github.com/ducky-labs/htmx-go-todo.git
synced 2026-02-04 14:41:00 +00:00
Changes
This commit is contained in:
@@ -9,7 +9,21 @@
|
||||
<script src="/static/htmx.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p class="text-5xl">Hello, world!</p>
|
||||
<div class="max-w-screen-md mx-auto mt-8">
|
||||
<div class="flex justify-between items-center">
|
||||
{{ template "TotalCount" dict "Count" .Count "SwapOOB" false }}
|
||||
{{ template "CompletedCount" dict "Count" .CompletedCount "SwapOOB" false }}
|
||||
</div>
|
||||
|
||||
{{ template "Form" }}
|
||||
|
||||
|
||||
<div id="items" class="space-y-2.5 mt-4">
|
||||
{{ range .Items }}
|
||||
{{ template "Item" dict "Item" . "SwapOOB" false }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user