Mercurial > urweb
annotate tests/nest2.ur @ 1132:d4cd54a4ea06
First attempt to switch to Automake, to get shared libraries built in OSX
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 28 Jan 2010 09:56:08 -0500 |
parents | 787d4931fb07 |
children |
rev | line source |
---|---|
adamc@453 | 1 fun wooho (wrap : xbody -> transaction page) = |
adamc@453 | 2 let |
adamc@453 | 3 fun subPage n = |
adamc@453 | 4 let |
adamc@453 | 5 fun subberPage () = wrap <xml>{[n]}</xml> |
adamc@453 | 6 in |
adamc@453 | 7 wrap <xml><a link={subberPage ()}>Go</a></xml> |
adamc@453 | 8 end |
adamc@453 | 9 in |
adamc@453 | 10 subPage 0 |
adamc@453 | 11 end |
adamc@453 | 12 |
adamc@453 | 13 fun wrap x = return <xml><body>{x}</body></xml> |
adamc@453 | 14 |
adamc@453 | 15 fun main () = wooho wrap |