add htmx-alpine with optimistic ui experience

This commit is contained in:
2025-12-09 18:46:50 +01:00
parent ddc3d77394
commit cfa0734f08
6 changed files with 282 additions and 0 deletions
@@ -0,0 +1,9 @@
<h2>Listado de tareas</h2>
<button hx-get="/todo/new" hx-target="#todo-list-body" hx-swap="afterbegin">
Nueva tarea
</button>
<ol id="todo-list-body">
{{ range .TodoList }} {{ template "fragments/todo-row" . }} {{ end }}
</ol>