view demo/url.ur @ 2261:f81f1930c5d6

Fix SQL-parsing and declaration-ordering bugs.
author Ziv Scully <>
date Wed, 30 Sep 2015 00:33:52 -0400
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}/>