diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-09 16:36:50 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-09 16:36:50 -0400 |
commit | 17cb59d373d1a94731d3730b938776b524d9f81c (patch) | |
tree | 3942a2b3cfdab76d585ffaea82462831d241d351 /tests/url.ur | |
parent | f48c39b31e2d82b1ef7da1aae7d0c555d26d3101 (diff) |
URLs
Diffstat (limited to 'tests/url.ur')
-rw-r--r-- | tests/url.ur | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/url.ur b/tests/url.ur new file mode 100644 index 00000000..c45681e0 --- /dev/null +++ b/tests/url.ur @@ -0,0 +1,13 @@ +val url = "http://www.yahoo.com/" + +fun readersChoice r = return <xml><body> + <a href={bless r.Url}>Your pick, boss</a> +</body></xml> + +fun main () : transaction page = return <xml><body> + <a href="http://www.google.com/">Google!</a> + <a href={bless url}>Yahoo!</a><br/> + <br/> + + <form><textbox{#Url}/> <submit action={readersChoice}/></form> +</body></xml> |