Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data WebPage markup attr = WebPage {
- pageTitle :: attr
- favicon :: markup
- metaVars :: markup
- initScripts :: markup
- beforeStylesScripts :: markup
- styles :: markup
- afterStylesScripts :: markup
- bodyScripts :: markup
Documentation
data WebPage markup attr Source
Generic layout for a web page. We keep the data type purely parametric to allow for record-syntax overloading / reassignment, like this: .
page :: WebPage (Html ()) T.Text
page' = page {pageTitle = "foo!"}
WebPage | |
|