Created
January 21, 2011 13:02
-
-
Save t0yv0/789642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module View = | |
let ( => ) a b = | |
A [HRef b] -< [Text a] | |
let Page title body = | |
PageContent <| fun ctx -> | |
{ | |
Page.Default with | |
Title = Some title | |
Body = | |
H1 [Text title] | |
:: | |
UL [ | |
LI ["Home" => ctx.Link Home] | |
LI ["AboutUs" => ctx.Link AboutUs] | |
] | |
:: | |
body | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment