Mercurial > urweb
view tests/selfRpc.ur @ 1774:27fdd78bd2f5
Avoid redundant rollbacks
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 02 Jun 2012 10:54:49 -0400 |
parents | 385a1b799a74 |
children |
line wrap: on
line source
fun test () = k <- source <xml/>; return <xml><button onclick={r <- rpc (test ()); set k r}/></xml> fun main () : transaction page = h <- test (); return <xml><body>{h}</body></xml>