diff tests/checkbox.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/checkbox.lac@3eb53c957d10
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/checkbox.ur	Sun Aug 31 08:32:18 2008 -0400
@@ -0,0 +1,10 @@
+val handler = fn x => <html><body>
+        {if x.A then cdata "Yes" else cdata "No"}
+</body></html>
+
+val main = fn () => <html><body>
+        <lform>
+                <checkbox{#A}/> How about it?<br/>
+                <submit action={handler}/>
+        </lform>
+</body></html>