Ajax Counter Example

// ajax counter example

model#counter {
count : integer
}

page#index {
counter : model#counter
-> add { counter.count++ }
}

view#index : page#index, html {
body {
p { "Counter: {counter.count}" }
a { "Click me" -> ajax add }
}
}
The language guide has a walk-through that is based on this example.

Last edited Sep 29, 2010 at 6:29 PM by jimmeyer, version 6

Comments

No comments yet.