view demo/url.ur @ 2307:6ae9a2784a45

Return to working version mode
author Adam Chlipala <>
date Sun, 20 Dec 2015 14:39:50 -0500
parents 412ccd97ab71
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>}

fun main () = return <xml><body>
  <a href="">Learn something</a><br/>
    URL of your choice: <textbox{#Url}/> <submit action={yourChoice}/>