|
<body><h1>To-do</h1><ul id="items">$items</ul><form id = "add" method = "POST" action = "" '/add' }"><input id = "title" type = "text" name = "item" size = 30 /><input id = "button" type = "submit" value = "Add" /></form></body></html>]===]todo.items = [===[$if{$items|1}[==[$items[[<li item_id="$id"><input class="item" type="checkbox" $if{$done}[=[checked]=] item_id="$id"/> $title<a href = "" class = "remove" item_id = "$id">Remove</a></li>]]]==],[==[Nothing to do!]==]]===]
$if{$items|1}[==[................]==],[==[Nothing to do!]==]
$items[[<li item_id="$id"><input class="item" type="checkbox" $if{$done}[=[checked]=] item_id="$id"/> $title<a href = "" class = "remove" item_id = "$id">Remove</a></li>]]