press-0.1.2: Text template library targeted at the web / HTML generation
Source code
Contents
Index
Text.Press.Types
Documentation
data
RenderState
Source
Constructors
RenderState
renderStateParser
::
Parser
renderStateTemplate
::
Template
renderStateValues
:: [
JSValue
]
data
PressError
Source
Constructors
PressError
String
ParseError
ParseError
RenderError
String
Instances
Show
PressError
Error
PressError
type
RenderT
a =
WriterT
[
String
] (
StateT
RenderState
(
ErrorT
PressError
IO
)) a
Source
type
RenderT_
=
RenderT
()
Source
getRenderState
::
RenderT
RenderState
Source
setRenderState
::
RenderState
->
RenderT
()
Source
data
TagFunc
Source
Constructors
TagFunc
RenderT_
Instances
Show
TagFunc
Render
TagFunc
data
Node
Source
Constructors
Var
String
Tag
TagName
TagFunc
Text
String
Instances
Show
Node
Render
Node
type
TemplatePath
=
String
Source
data
Template
Source
Constructors
Template
tmplExtends
::
Maybe
TemplatePath
tmplBlocks
::
Map
String
[
Node
]
tmplNodes
:: [
Node
]
tmplFilename
::
String
Instances
Show
Template
type
TagName
=
String
Source
type
TemplateParser
a =
Parsec
[(
Token
,
SourcePos
)]
ParserState
a
Source
type
NodeParser
=
TemplateParser
(
Maybe
Node
)
Source
data
TagType
Source
Constructors
TagType
(
TagName
->
String
->
NodeParser
)
Instances
Show
TagType
data
Expr
Source
Constructors
ExprStr
String
ExprVar
String
ExprNum
Double
Instances
Eq
Expr
Ord
Expr
Show
Expr
type
ParserState
= (
Parser
,
Template
)
Source
data
Token
Source
Constructors
PText
String
PTag
TagName
String
PVar
String
Instances
Eq
Token
Ord
Token
Show
Token
data
Parser
Source
Constructors
Parser
parserTagTypes
::
Map
TagName
TagType
parserSearchPaths
:: [
String
]
parserTemplateCache
::
Map
TemplatePath
Template
Instances
Show
Parser
class
Render
a
where
Source
Methods
render
:: a ->
RenderT_
Source
Instances
Render
JSValue
Render
Node
Render
TagFunc
Produced by
Haddock
version 2.6.1