comparison tests/reactive5.ur @ 581:e955d50c389d

Double-bind works
author Adam Chlipala <adamc@hcoop.net>
date Tue, 30 Dec 2008 16:11:29 -0500
parents
children
comparison
equal deleted inserted replaced
580:bb8463c3b712 581:e955d50c389d
1 fun main () : transaction page =
2 x <- source <xml>A</xml>;
3 y <- source <xml>B</xml>;
4 return <xml><body>
5 <dyn signal={x <- signal x; y <- signal y; return <xml>{x}, {y}</xml>}/>
6 <br/>
7 <a onclick={set x <xml>C</xml>}>Change x</a><br/>
8 <a onclick={set y <xml>D</xml>}>Change y</a><br/>
9 </body></xml>