hamlet-0.2.3.1: Haml-like template files that are compile-time checked

Text.Hamlet.Parse

Synopsis

Documentation

data Result v Source

Constructors

Error String 
Ok v 

Instances

newtype Deref Source

Constructors

Deref [(Bool, Ident)]

is monadic, ident

newtype Ident Source

Constructors

Ident String 

data HamletSettings Source

Settings for parsing of a hamlet document.

Constructors

HamletSettings 

Fields

hamletDoctype :: String

The value to replace a "!!!" with. Do not include the trailing newline.

hamletCloseEmpties :: Bool

True means to close empty tags (eg, img) with a trailing slash, ie XML-style empty tags. False uses HTML-style.

defaultHamletSettings :: HamletSettingsSource

Defaults settings: HTML5 doctype and HTML-style empty tags.