Skip to content

Instantly share code, notes, and snippets.

@t0yv0
Created January 21, 2011 13:02
Show Gist options
  • Save t0yv0/789642 to your computer and use it in GitHub Desktop.
Save t0yv0/789642 to your computer and use it in GitHub Desktop.
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