The page
Pages for agents
Examplea whole program
app "Todos"shape Todo id: string title: string done: boolstate todos: Todo[] = [] persiststate draft = ""state open = falseaction add if draft.trim() == "" return todos.push({id: uid(), title: draft, done: false}) draft = ""action wipe todos = []column gap=8 padding=16 input value=draft submit=add placeholder="What next?" button "Add" press=add button "Menu" press={open = true} button "Clear all" press=wipe data-mote="clear" for t in todos key=t.id row gap=8 input type=checkbox checked=t.done text t.titleMental model#
data-mote#
The mote-agent block#
agents.mote#
Turning it off#
mote: the page without a picture#
Driving a Mote page#
Pitfalls#
In the source#
Edit this page:
docs/agents.md