webpage-0.0.2: Organized and simple web page scaffold for blaze and lucid

Safe HaskellNone
LanguageHaskell2010

Web.Page.Types

Synopsis

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!"}

Constructors

WebPage 

Fields

pageTitle :: attr

Page title

favicon :: attr

Favicon url

metaVars :: markup

<meta> tags

initScripts :: markup

JavaScript to include at the top of the page

beforeStylesScripts :: markup

JavaScript to include before <style> tags

styles :: markup

Styles

afterStylesScripts :: markup

JavaScript to include after <style> tags - ie: Modernizr

bodyScripts :: markup

JavaScript to include at the base of <body>

Instances

(Show markup, Show attr) => Show (WebPage markup attr) 
(Monoid m, Monoid a) => Default (WebPage m a)