summaryrefslogtreecommitdiff
path: root/tests/setInner.ur
blob: 3032f8a7dcd2cbe7d79e9c6e90a085d38aee1d47 (plain)
1
2
3
4
5
6
7
8
9
fun main () : transaction page =
    x <- fresh;
    s <- source 0;
    q <- source "";
    return <xml><body>
      <span id={x}/>
      <button onclick={v <- get q; set q (v ^ "!"); Ffi.setIt x <xml><dyn signal={n <- signal s; return <xml>n = {[n]}</xml>}/>{[v]}</xml>}/>
      <button onclick={n <- get s; set s (n + 1)}/>
    </body></xml>