view tests/url.ur @ 2278:b7615e0ac4b0

Fix bug in and clean up free path code.
author Ziv Scully <>
date Tue, 10 Nov 2015 12:35:00 -0500
parents c125df6fabfc
line wrap: on
line source
fun readersChoice r = return <xml><body>
  {case checkUrl r.Url of
       None => <xml>I can't do that, Dave.</xml>
     | Some url => <xml><a href={url}>Your pick, boss</a></xml>}

fun main () : transaction page = return <xml><body>
  <a href="">Learn</a>

  <form><textbox{#Url}/> <submit action={readersChoice}/></form>