nerak repo

This commit is contained in:
2026-07-31 15:48:58 -05:00
committed by nightshade
commit 0155e6ddf0
84 changed files with 5448 additions and 0 deletions
@@ -0,0 +1,19 @@
{{< layout}}
{{$head}}
{{> datastar }}
{{/head}}
{{$body}}
<input type="text" placeholder="new todo" data-bind:title
data-on:keydown="evt.key === 'Enter' && @post('{{url:todos}}?{{csrf:param}}') && ($title = '');"
>
<button data-on:click="@post('{{url:todos}}?{{csrf:param}}') && ($title = '')">add</button>
<div id="todos" data-init="@get('{{url:todos}}?{{http_sse:param}}')">
{{^todos_data}}
<p>no todos</p>
{{/todos_data}}
{{#todos_data}}
{{> todo_item}}
{{/todos_data}}
</div>
{{/body}}
{{/layout}}