StrappedTemplates-0.1.1.0: General purpose templates in haskell

Safe HaskellNone
LanguageHaskell98

Text.Strapped.Types

Documentation

type Output = Builder Source

data ParsedPiece Source

Constructors

ParsedPiece Piece SourcePos 

Instances

class Renderable a where Source

Instances

data Input m Source

Constructors

forall a . Renderable a => RenderVal a 
List [Input m] 
Func (Literal -> ExceptT StrapError m Literal) 
LitVal Literal 

class Booly a where Source

Methods

toBool :: a -> Bool Source

Instances

data StrapError Source

Constructors

StrapError String SourcePos 
InputNotFound String SourcePos 
TemplateNotFound String SourcePos 

data Template Source

Constructors

Template [ParsedPiece] 

Instances

data RenderConfig Source

Constructors

RenderConfig 

Fields

templateStore :: TemplateStore
 
escapeFunc :: Text -> Text