summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-07-13 20:24:05 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-07-13 20:24:05 -0400
commitcf6caf0383daf8cb576edf5c1f0f736d2f4c85bd (patch)
tree5ddacbdd84964c107c03a631bf221d4fb9072691 /tests
parent811a3831805bf7a87ed3a64156f4ac6f6246edb9 (diff)
Multiple arguments to web functions
Diffstat (limited to 'tests')
-rw-r--r--tests/plink2.lac8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/plink2.lac b/tests/plink2.lac
new file mode 100644
index 00000000..22cd9094
--- /dev/null
+++ b/tests/plink2.lac
@@ -0,0 +1,8 @@
+val pA = fn size1 => fn size2 => <html><body>
+ <font size={size1}>Hello</font> <font size={size2}>World!</font>
+</body></html>
+
+val main = fn () => <html><body>
+ <li> <a link={pA 5 10}>Size 5</a></li>
+ <li> <a link={pA 10 5}>Size 10</a></li>
+</body></html>