generic-lucid-scaffold-0.0.1: General-purpose web page scaffold for Lucid.

Safe HaskellNone
LanguageHaskell2010

Lucid.Scaffold

Documentation

data WebPage m Source

Constructors

WebPage 

Fields

pageTitle :: Text

Page title

favicon :: Text

Favicon url

metaVars :: HtmlT m ()

<meta> tags

initScripts :: HtmlT m ()

JavaScript to include at the top of the page

beforeStylesScripts :: HtmlT m ()

JavaScript to include before <style> tags

styles :: HtmlT m ()

Styles

afterStylesScripts :: HtmlT m ()

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

bodyScripts :: HtmlT m ()

JavaScript to include at the base of <body>

Instances

Monad m => Monoid (WebPage m) 

template Source

Arguments

:: Monad m 
=> WebPage m

Page information

-> HtmlT m ()

Content to insert in <body>

-> HtmlT m ()