Mercurial > urweb
view tests/radio.ur @ 1883:5125b1df6045
Save disjointness environments across top-level declarations
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 17 Oct 2013 09:22:38 -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>