summaryrefslogtreecommitdiff
path: root/tests/selfRpc.ur
blob: a851008d190d4f104f4130c0d6f408844fe8fc42 (plain)
1
2
3
4
5
6
7
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>