view demo/url.ur @ 1233:8d1d2f7163c2

Fix problem with overly weak ambients for queries; fix known-related bug in assert for Dt1
author Adam Chlipala <adamc@hcoop.net>
date Tue, 13 Apr 2010 10:40:55 -0400
parents 412ccd97ab71
children
line wrap: on
line source
fun yourChoice r = return <xml><body>
  {case checkUrl r.Url of
       None => <xml>You aren't allowed to link to there.</xml>
     | Some url => <xml><a href={url}>Enjoy!</a></xml>}
</body></xml>

fun main () = return <xml><body>
  <a href="http://en.wikipedia.org/wiki/Type_inference">Learn something</a><br/>
  <br/>
  <form>
    URL of your choice: <textbox{#Url}/> <submit action={yourChoice}/>
  </form>
</body></xml>