summaryrefslogtreecommitdiff
path: root/tests/record_page.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/record_page.ur')
-rw-r--r--tests/record_page.ur10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/record_page.ur b/tests/record_page.ur
new file mode 100644
index 0000000..a54a913
--- /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