summaryrefslogtreecommitdiff
path: root/demo/increment.ur
blob: 532ceb83453e44a316d077f74640f44d4e211e73 (plain)
1
2
3
4
5
6
7
8
9
10
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={n <- rpc (increment ()); set src n}/>
    </body></xml>