Mercurial > urweb
annotate tests/url.ur @ 717:e28637743279
URLs
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 09 Apr 2009 16:36:50 -0400 |
parents | |
children | c125df6fabfc |
rev | line source |
---|---|
adamc@717 | 1 val url = "http://www.yahoo.com/" |
adamc@717 | 2 |
adamc@717 | 3 fun readersChoice r = return <xml><body> |
adamc@717 | 4 <a href={bless r.Url}>Your pick, boss</a> |
adamc@717 | 5 </body></xml> |
adamc@717 | 6 |
adamc@717 | 7 fun main () : transaction page = return <xml><body> |
adamc@717 | 8 <a href="http://www.google.com/">Google!</a> |
adamc@717 | 9 <a href={bless url}>Yahoo!</a><br/> |
adamc@717 | 10 <br/> |
adamc@717 | 11 |
adamc@717 | 12 <form><textbox{#Url}/> <submit action={readersChoice}/></form> |
adamc@717 | 13 </body></xml> |