view tests/radio.lac @ 192:9bbf4d383381

Parametrized datatypes through corify
author Adam Chlipala <adamc@hcoop.net>
date Fri, 08 Aug 2008 10:59:06 -0400
parents cfe6f9db74aa
children
line wrap: on
line source
val handler = fn x => <html><body>
        You entered: {cdata x.A}
</body></html>

val main = fn () => <html><body>
        <lform>
                <radio{#A}>
                        <li> <radioOption value="A"/>A</li>
                        <li> <radioOption value="B"/>B</li>
                </radio>
                <submit action={handler}/>
        </lform>
</body></html>