comparison tests/record_page.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/record_page.lac@5dbba661deab
children
comparison
equal deleted inserted replaced
243:2b9dfaffb008 244:71bafe66dbe1
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>