summaryrefslogtreecommitdiff
path: root/tests/autocomp.ur
blob: d4e6a287e45a28dc6a5961a992a2630a125c05cf (plain)
1
2
3
4
5
6
7
8
9
10
11
fun main () : transaction page =
  a <- source "";
  b <- source "";
  return <xml><body>
    <form>
      <textbox{#A} source={a}/>
      <button onclick={x <- get a; set b x}/>
      <dyn signal={v <- signal a; return <xml>{[v]}</xml>}/>
      / <dyn signal={v <- signal b; return <xml>{[v]}</xml>}/>
    </form>
  </body></xml>