17 lines
348 B
HTML
17 lines
348 B
HTML
|
|
{{< layout}}
|
||
|
|
{{$body}}
|
||
|
|
<form action="{{url:todos}}" method="post">
|
||
|
|
<input type="text" name="title" placeholder="new todo" required>
|
||
|
|
<button type="submit">add</button>
|
||
|
|
</form>
|
||
|
|
{{^todos}}
|
||
|
|
<p>no todos</p>
|
||
|
|
{{/todos}}
|
||
|
|
{{#todos}}
|
||
|
|
{{#.}}
|
||
|
|
{{> todo}}
|
||
|
|
{{/.}}
|
||
|
|
{{/todos}}
|
||
|
|
{{/body}}
|
||
|
|
{{/layout}}
|