Mercurial > urweb
view tests/radio.ur @ 2067:88841212f0ba
In computing command lines, put filenames inside of quotes, to support spaces and other funky characters nicely
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 04 Sep 2014 08:40:14 -0400 |
parents | a1a1d66aebac |
children |
line wrap: on
line source
fun handler x = return <xml><body> You entered: {[case x.A of None => "nothing at all" | Some v => v]} </body></xml> fun main () = return <xml><body> <form> <radio{#A}> <li><radioOption value="A"/>A</li> <li><radioOption value="B"/>B</li> </radio> <submit action={handler}/> </form> </body></xml>