diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-10-23 14:03:12 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-10-23 14:03:12 -0400 |
commit | a4a697ab04bac663206a54292d73f67ca895c243 (patch) | |
tree | 65ced70d644fa88a41a2270c9e5351cca303914c /demo/metaform2.ur | |
parent | 2e606b03c8dbc594610e62ac260145ac26ebc699 (diff) |
Metaform demos, minus prose
Diffstat (limited to 'demo/metaform2.ur')
-rw-r--r-- | demo/metaform2.ur | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/demo/metaform2.ur b/demo/metaform2.ur new file mode 100644 index 00000000..430a42f0 --- /dev/null +++ b/demo/metaform2.ur @@ -0,0 +1,12 @@ +structure MM = Metaform.Make(struct + val names = {X = "x", Y = "y"} + 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> |