comparison tests/form3.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/form3.lac@f0d3402184d1
children
comparison
equal deleted inserted replaced
243:2b9dfaffb008 244:71bafe66dbe1
1 val handler1 = fn r => <html><body>
2 <li> Name: {cdata r.Nam}</li>
3 <li> Word: {cdata r.Word}</li>
4 </body></html>
5
6 val handler2 = fn r => <html><body>
7 <li> Name: {cdata r.Nam}</li>
8 <li> Ward: {cdata r.Ward}</li>
9 </body></html>
10
11 val handler3 = fn r => <html><body>
12 <li> Name: {cdata r.Nam}</li>
13 <li> Ward: {cdata r.Ward}</li>
14 <li> Words: {cdata r.Words}</li>
15 </body></html>
16
17 val main : unit -> page = fn () => <html><body>
18 <lform>
19 Name: <textbox{#Nam} /><br/>
20 Word: <textbox{#Word} /><br/>
21
22 <submit action={handler1}/>
23 </lform>
24
25 <lform>
26 Name: <textbox{#Nam} /><br/>
27 Word: <textbox{#Ward} /><br/>
28
29 <submit action={handler2}/>
30 </lform>
31
32 <lform>
33 Name: <textbox{#Nam} /><br/>
34 Ward: <textbox{#Ward} /><br/>
35 Words: <textbox{#Words} /><br/>
36
37 <submit action={handler3}/>
38 </lform>
39 </body></html>