Mercurial > urweb
view tests/active.ur @ 2093:c647f113ba3e
New antiquote syntax for ORDER BY
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Tue, 23 Dec 2014 12:24:38 -0500 |
parents | d794149b3713 |
children |
line wrap: on
line source
fun counter' () = s <- source 0; return <xml> <dyn signal={n <- signal s; return (txt n)}/> <button onclick={fn _ => n <- get s; set s (n + 1)}/> </xml> fun counter () = <xml><active code={counter' ()}/></xml> fun main () : transaction page = return <xml><body> {counter ()} <hr/> {counter ()} </body></xml>