Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module containing the elements used in a template. A template is generally just a list of these elements.
Synopsis
- newtype TemplateKey = TemplateKey String
- data TemplateExpr
- data TemplateElement
- templateElems :: Parser [TemplateElement]
- readTemplateElems :: String -> [TemplateElement]
- readTemplateElemsFile :: FilePath -> String -> [TemplateElement]
Documentation
newtype TemplateKey Source #
Instances
Eq TemplateKey Source # | |
Defined in Hakyll.Web.Template.Internal.Element (==) :: TemplateKey -> TemplateKey -> Bool # (/=) :: TemplateKey -> TemplateKey -> Bool # | |
Show TemplateKey Source # | |
Defined in Hakyll.Web.Template.Internal.Element showsPrec :: Int -> TemplateKey -> ShowS # show :: TemplateKey -> String # showList :: [TemplateKey] -> ShowS # | |
IsString TemplateKey Source # | |
Defined in Hakyll.Web.Template.Internal.Element fromString :: String -> TemplateKey # | |
Binary TemplateKey Source # | |
Defined in Hakyll.Web.Template.Internal.Element |
data TemplateExpr Source #
Expression in a template
Instances
Eq TemplateExpr Source # | |
Defined in Hakyll.Web.Template.Internal.Element (==) :: TemplateExpr -> TemplateExpr -> Bool # (/=) :: TemplateExpr -> TemplateExpr -> Bool # | |
Show TemplateExpr Source # | |
Defined in Hakyll.Web.Template.Internal.Element showsPrec :: Int -> TemplateExpr -> ShowS # show :: TemplateExpr -> String # showList :: [TemplateExpr] -> ShowS # | |
Binary TemplateExpr Source # | |
Defined in Hakyll.Web.Template.Internal.Element |
data TemplateElement Source #
Elements of a template.
Chunk String | |
Expr TemplateExpr | |
Escaped | |
If TemplateExpr [TemplateElement] (Maybe [TemplateElement]) | |
For TemplateExpr [TemplateElement] (Maybe [TemplateElement]) | |
Partial TemplateExpr | |
TrimL | |
TrimR |
Instances
Eq TemplateElement Source # | |
Defined in Hakyll.Web.Template.Internal.Element (==) :: TemplateElement -> TemplateElement -> Bool # (/=) :: TemplateElement -> TemplateElement -> Bool # | |
Show TemplateElement Source # | |
Defined in Hakyll.Web.Template.Internal.Element showsPrec :: Int -> TemplateElement -> ShowS # show :: TemplateElement -> String # showList :: [TemplateElement] -> ShowS # | |
Binary TemplateElement Source # | |
Defined in Hakyll.Web.Template.Internal.Element |
readTemplateElems :: String -> [TemplateElement] Source #
readTemplateElemsFile :: FilePath -> String -> [TemplateElement] Source #