view tests/reactive4.ur @ 580:bb8463c3b712

Propagating a change through a bind
author Adam Chlipala <adamc@hcoop.net>
date Tue, 30 Dec 2008 16:08:25 -0500
parents
children
line wrap: on
line source
fun main () : transaction page =
  x <- source <xml>TEST</xml>;
  return <xml><body>
    <dyn signal={y <- signal x; return <xml>!{y}?</xml>}/>
    <br/>
    <a onclick={set x <xml>CHANGEUP</xml>}>Oh My</a>
  </body></xml>