add datastar examples

This commit is contained in:
2025-12-09 02:30:55 +01:00
parent f6bfd1f7ab
commit 5a43abbdc7
7 changed files with 277 additions and 0 deletions
@@ -0,0 +1,9 @@
<div id="todo-container">
<h2>Listado de tareas</h2>
<button data-on-click="@get('/todo/new')">Nueva tarea</button>
<ol id="todo-list-body">
{{ range .TodoList }} {{ template "fragments/todo-row" . }} {{ end }}
</ol>
</div>