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:
15
templates/count.html
Normal file
15
templates/count.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ define "TotalCount" }}
|
||||
<p id="total" {{ if .SwapOOB }}hx-swap-oob="innerHTML:#total"{{ end }}>
|
||||
Total tasks:
|
||||
{{ .Count }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ define "CompletedCount" }}
|
||||
<p
|
||||
id="completed"
|
||||
{{ if .SwapOOB }}hx-swap-oob="innerHTML:#completed"{{ end }}
|
||||
>
|
||||
Completed tasks: {{ .Count }}
|
||||
</p>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user