view tests/url.ur @ 743:cd67c3a942e3

Handling nullable blobs
author Adam Chlipala <adamc@hcoop.net>
date Sun, 26 Apr 2009 10:53:36 -0400
parents e28637743279
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>