diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2017-07-23 09:50:04 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2017-07-23 09:50:04 -0400 |
commit | 0cccdb0ae595cd7e3e136e984ac7b95b99f71a53 (patch) | |
tree | 491d3b13813610943c60460d3e178d3a73916346 /tests/reactive5.ur |
Import urweb_20170720+dfsg.orig.tar.gz
[dgit import orig urweb_20170720+dfsg.orig.tar.gz]
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 0000000..01c63ea --- /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> |