view 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 source
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>