comparison tests/record_page.lac @ 200:5dbba661deab

Urlifying records
author Adam Chlipala <adamc@hcoop.net>
date Sat, 09 Aug 2008 20:08:29 -0400
parents
children
comparison
equal deleted inserted replaced
199:c938fe391c84 200:5dbba661deab
1 type t = {A : string, B : {C : string, D : string}}
2
3 val page = fn x : t => <html><body>
4 {cdata x.A},{cdata x.B.C},{cdata x.B.D}
5 </body></html>
6
7 val main : unit -> page = fn () => <html><body>
8 <li><a link={page {A = "A", B = {C = "B", D = "C"}}}>First</a></li>
9 <li><a link={page {A = "D", B = {C = "E", D = "F"}}}>Second</a></li>
10 </body></html>