view tests/url.ur @ 717:e28637743279

URLs
author Adam Chlipala <adamc@hcoop.net>
date Thu, 09 Apr 2009 16:36:50 -0400
parents
children c125df6fabfc
line wrap: on
line source
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>