var db = database "todo"; var items = table "items" with (name : String) from db; fun showList() server { page
{for (item <- query {for (item <-- items) [item]}) }
{stringToXml(item.name)}
} fun add(name) server { insert items values [(name=name)]; showList() } fun remove(name) server { delete (r <-- items) where (r.name == name); showList() } showList()