view tests/url.ur @ 2237:e79ef5792c8b

Fix bug in redundancy checking and use finer formula for UPDATE statements.
author Ziv Scully <>
date Sun, 05 Jul 2015 23:57:28 -0700
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>