summaryrefslogtreecommitdiff
path: root/main.ur
diff options
context:
space:
mode:
Diffstat (limited to 'main.ur')
-rw-r--r--main.ur18
1 files changed, 10 insertions, 8 deletions
diff --git a/main.ur b/main.ur
index 7fe5845..a64254b 100644
--- a/main.ur
+++ b/main.ur
@@ -18,6 +18,16 @@ with 6.947. If not, see <http://www.gnu.org/licenses/>. *)
open Styles
+structure Forum = Forum.Make(struct
+ fun generic (pageName : option string) (content : xbody) : page =
+ Template.generic pageName <xml>
+ {Menu.header (make [#Forum] ())}
+ {content}
+ </xml>
+ end)
+
+val forum = Forum.main
+
fun main () =
return (Template.generic None <xml>
{Menu.header (make [#Main] ())}
@@ -29,11 +39,3 @@ fun main () =
</p>
</div>
</xml>)
-
-and forum () = forumWorker Forum.main
-and forumWorker (f : unit -> xbody) =
- return (Template.generic (Some "Forum") <xml>
- {Menu.header (make [#Forum] ())}
- {f ()}
- </xml>)
-