Mercurial > urweb
view demo/increment.ur @ 1821:e8149592990e
Better error message about signals remaining in server-side code
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 16 Sep 2012 08:31:54 -0400 |
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>