summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-09 20:08:29 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-09 20:08:29 -0400
commitbb9795918d2f0a1d9141dd86c4884fa9446cb2a9 (patch)
tree538d4d4a08d80201fda8187ec281b39a43669f75 /tests
parent65edfa17d6df526c57fdb08bf033671c7c6756f6 (diff)
Urlifying records
Diffstat (limited to 'tests')
-rw-r--r--tests/record_page.lac10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/record_page.lac b/tests/record_page.lac
new file mode 100644
index 00000000..a54a9133
--- /dev/null
+++ b/tests/record_page.lac
@@ -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