Mercurial > urweb
annotate tests/reactive4.ur @ 2162:c39c48696393
Allow returnBlob and redirect in static protocol
Both of these functions end up returning RETURN_INDIRECTLY, which is
assumed to be an error by static.c's main. Treat it as success
instead.
author | Julian Squires <julian@cipht.net> |
---|---|
date | Mon, 13 Jul 2015 14:34:30 -0400 |
parents | bb8463c3b712 |
children |
rev | line source |
---|---|
adamc@580 | 1 fun main () : transaction page = |
adamc@580 | 2 x <- source <xml>TEST</xml>; |
adamc@580 | 3 return <xml><body> |
adamc@580 | 4 <dyn signal={y <- signal x; return <xml>!{y}?</xml>}/> |
adamc@580 | 5 <br/> |
adamc@580 | 6 <a onclick={set x <xml>CHANGEUP</xml>}>Oh My</a> |
adamc@580 | 7 </body></xml> |