MaCH repo

This commit is contained in:
2025-07-24 12:46:01 -05:00
committed by Nick Ricketts
commit 4c31a61fd6
74 changed files with 5578 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{{< layout}}
{{$head}}
{{> datastar_script }}
{{/head}}
{{$body}}
<input type="text" placeholder="new todo" data-bind:title
data-on:keydown="evt.key === 'Enter' && @post('{{utl:todos}}') && ($title = '');"
>
<button data-on:click="@post('{{url:todos}}') && ($title = '')">add</button>
<div id="todos" data-init="@get('{{url:todos}}?http_method=sse')">
{{^todos}}
<p>no todos</p>
{{/todos}}
{{#todos}}
{{#.}}
{{> todo}}
{{/.}}
{{/todos}}
</div>
{{/body}}
{{/layout}}