| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Hakyll.Web.Template.Internal
Description
Module containing the template data structure
- newtype Template = Template {}
- newtype TemplateKey = TemplateKey String
- data TemplateExpr
- data TemplateElement
- readTemplate :: String -> Template
Documentation
Datatype used for template substitutions.
Constructors
| Template | |
Fields | |
newtype TemplateKey Source
Constructors
| TemplateKey String |
data TemplateExpr Source
Expression in a template
Constructors
| Ident TemplateKey | |
| Call TemplateKey [TemplateExpr] | |
| StringLiteral String |
Instances
data TemplateElement Source
Elements of a template.
Constructors
| Chunk String | |
| Expr TemplateExpr | |
| Escaped | |
| If TemplateExpr Template (Maybe Template) | |
| For TemplateExpr Template (Maybe Template) | |
| Partial TemplateExpr |
readTemplate :: String -> Template Source