Mercurial > urweb
view demo/metaform2.ur @ 632:6c4643880df5
Demos compile again, with manual folders
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 24 Feb 2009 15:12:13 -0500 |
parents | ad7e854a518c |
children | 6302b10dbe0e |
line wrap: on
line source
structure MM = Metaform.Make(struct val names = {X = "x", Y = "y"} val fl = Folder.cons [#X] [()] ! (Folder.cons [#Y] [()] ! Folder.nil) end) fun diversion () = return <xml><body> Welcome to the diversion. </body></xml> fun main () = return <xml><body> <li> <a link={diversion ()}>See something shiny!</a></li> <li> <a link={MM.main ()}>Fill out a form!</a></li> </body></xml>