summaryrefslogtreecommitdiff
path: root/demo/increment.ur
blob: a74e80df3d6340f5218088b127c42a8754f99c31 (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 <- increment (); set src n}/>
    </body></xml>