summaryrefslogtreecommitdiff
path: root/tests/sendurl.ur
blob: 8264305a2c224b5ee9d33320e95f64f691c67abf (plain)
1
2
3
4
5
6
7
8
9
10
11
fun main () =
    let
        fun getIt () = return (bless "http://www.yahoo.com/")
    in
        s <- source <xml/>;
        return <xml><body>
          <dyn signal={signal s}/>

          <button onclick={v <- rpc (getIt ()); set s <xml><a href={v}>Go!</a></xml>}/>
        </body></xml>
    end