log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
urweb
annotate tests/selfRpc.ur @ 1695:385a1b799a74
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
Handle recursive RPC handlers
author
Adam Chlipala <adam@chlipala.net>
date
Sun, 11 Mar 2012 21:20:09 -0400
parents
children
rev
line source
adam@1695
1
fun test () =
adam@1695
2
k <- source <xml/>;
adam@1695
3
return <xml><button onclick={r <- rpc (test ()); set k r}/></xml>
adam@1695
4
adam@1695
5
fun main () : transaction page =
adam@1695
6
h <- test ();
adam@1695
7
return <xml><body>{h}</body></xml>