diff tests/link.lac @ 110:3739af9e727a

Starting with closure links
author Adam Chlipala <adamc@hcoop.net>
date Sun, 13 Jul 2008 11:43:57 -0400
parents
children 2d6116de9cca
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/link.lac	Sun Jul 13 11:43:57 2008 -0400
@@ -0,0 +1,9 @@
+val ancillary : {} -> xhtml = fn () => <html>
+        Welcome to the ancillary page!
+</html>
+
+val main : {} -> xhtml = fn () => <html><body>
+        <a link={ancillary ()}>Enter the unknown!</a>
+
+        <a link={ancillary ()}>Alternate route!</a>
+</body></html>