Safe Haskell | Safe-Inferred |
---|---|
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]
- parseTemplateElemsFile :: FilePath -> String -> Either String [TemplateElement]
Documentation
newtype TemplateKey Source #
Instances
IsString TemplateKey Source # | |
Defined in Hakyll.Web.Template.Internal.Element fromString :: String -> TemplateKey # | |
Show TemplateKey Source # | |
Defined in Hakyll.Web.Template.Internal.Element showsPrec :: Int -> TemplateKey -> ShowS # show :: TemplateKey -> String # showList :: [TemplateKey] -> ShowS # | |
Binary TemplateKey Source # | |
Defined in Hakyll.Web.Template.Internal.Element | |
Eq TemplateKey Source # | |
Defined in Hakyll.Web.Template.Internal.Element (==) :: TemplateKey -> TemplateKey -> Bool # (/=) :: TemplateKey -> TemplateKey -> Bool # |
data TemplateExpr Source #
Expression in a template
Instances
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 | |
Eq TemplateExpr Source # | |
Defined in Hakyll.Web.Template.Internal.Element (==) :: TemplateExpr -> TemplateExpr -> Bool # (/=) :: TemplateExpr -> TemplateExpr -> Bool # |
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
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 | |
Eq TemplateElement Source # | |
Defined in Hakyll.Web.Template.Internal.Element (==) :: TemplateElement -> TemplateElement -> Bool # (/=) :: TemplateElement -> TemplateElement -> Bool # |
parseTemplateElemsFile :: FilePath -> String -> Either String [TemplateElement] Source #