diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-31 08:32:18 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-31 08:32:18 -0400 |
commit | 447b60afccc89ef18d8f92a260dd1fcdf735898e (patch) | |
tree | 93d1ffca9832084286525896afc4c17eaf5d23f4 /tests/record_page.ur | |
parent | 508290e29047e068b9db4b02485fefd9e3ced81c (diff) |
Laconic -> Ur
Diffstat (limited to 'tests/record_page.ur')
-rw-r--r-- | tests/record_page.ur | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/record_page.ur b/tests/record_page.ur new file mode 100644 index 00000000..a54a9133 --- /dev/null +++ b/tests/record_page.ur @@ -0,0 +1,10 @@ +type t = {A : string, B : {C : string, D : string}} + +val page = fn x : t => <html><body> + {cdata x.A},{cdata x.B.C},{cdata x.B.D} +</body></html> + +val main : unit -> page = fn () => <html><body> + <li><a link={page {A = "A", B = {C = "B", D = "C"}}}>First</a></li> + <li><a link={page {A = "D", B = {C = "E", D = "F"}}}>Second</a></li> +</body></html>
\ No newline at end of file |