Mercurial > urweb
view demo/counter.ur @ 1553:4105f779de7b
Even gentler handling of back-button returns to pages with stale message-passing credentials
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 28 Aug 2011 19:32:20 -0400 |
parents | 4359e185d3af |
children |
line wrap: on
line source
(* Workhorse function, which [main] will call *) 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