diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-10-23 11:59:48 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-10-23 11:59:48 -0400 |
commit | 833f4d2e0474ec3ff772107b52711289c4b648cf (patch) | |
tree | 9623809c43673edac7f48bb26d0be992f2c4377d /demo/counter.ur | |
parent | e0f9a9d921e6e505c86ef3e798690784f7abd511 (diff) |
Counter demo
Diffstat (limited to 'demo/counter.ur')
-rw-r--r-- | demo/counter.ur | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/demo/counter.ur b/demo/counter.ur new file mode 100644 index 00000000..b11fc936 --- /dev/null +++ b/demo/counter.ur @@ -0,0 +1,7 @@ +fun counter n = return <xml><body> + Current counter: {[n]}<br/> + <a link={counter (n + 1)}>Increment</a><br/> + <a link={counter (n - 1)}>Decrement</a> +</body></xml> + +fun main () = counter 0 |