diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-12-30 16:11:29 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-12-30 16:11:29 -0500 |
commit | c25af86ae9310055dd594f6330e39f93c9f24cb7 (patch) | |
tree | e3d1b2cd22b111820c56581ec871c24bd1087856 /tests/reactive5.ur | |
parent | 7f3851104f9fdefdd09d8e9a0f600968175589e0 (diff) |
Double-bind works
Diffstat (limited to 'tests/reactive5.ur')
-rw-r--r-- | tests/reactive5.ur | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/reactive5.ur b/tests/reactive5.ur new file mode 100644 index 00000000..01c63eae --- /dev/null +++ b/tests/reactive5.ur @@ -0,0 +1,9 @@ +fun main () : transaction page = + x <- source <xml>A</xml>; + y <- source <xml>B</xml>; + return <xml><body> + <dyn signal={x <- signal x; y <- signal y; return <xml>{x}, {y}</xml>}/> + <br/> + <a onclick={set x <xml>C</xml>}>Change x</a><br/> + <a onclick={set y <xml>D</xml>}>Change y</a><br/> + </body></xml> |