Mercurial > urweb
view demo/increment.ur @ 2121:f89be9cd2087
Support 'dynClass' and 'dynStyle' for <body>
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Tue, 03 Mar 2015 15:55:00 -0500 |
parents | e6bc6bbd7a32 |
children |
line wrap: on
line source
sequence seq fun increment () = nextval seq fun main () = src <- source 0; return <xml><body> <dyn signal={n <- signal src; return <xml>{[n]}</xml>}/> <button value="Update" onclick={fn _ => n <- rpc (increment ()); set src n}/> </body></xml>