summaryrefslogtreecommitdiff
path: root/tests/dynSpan.ur
blob: 123adde2b1e44bfad01f6b7dd27e275d8894f0a5 (plain)
1
2
3
4
5
6
7
8
val x = 1

fun main () : transaction page =
    s <- source "!";
    return <xml><body>
      <dyn signal={x <- signal s; return <xml><span>{[x]}</span></xml>}/>
      <button onclick={x <- get s; set s (x ^ "!")}/>
    </body></xml>