Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- compileTemplateItem :: Item String -> Compiler Template
- loadTemplate :: Identifier -> TemplateRunner a Template
- applyTemplate :: Identifier -> TemplateRunner String ()
- applyAsTemplate :: TemplateRunner String ()
- reduceTemplate :: Template -> TemplateRunner String String
- reduceBlocks :: [Block] -> TemplateRunner String String
- applyBlocks :: [Block] -> TemplateRunner String [ContextValue String]
- applyBlock :: Block -> TemplateRunner String (ContextValue String)
- applyAltBlock :: Expression -> [Block] -> [ApplyBlock] -> Maybe DefaultBlock -> TemplateRunner String [ContextValue String]
- eval :: Expression -> TemplateRunner a (ContextValue a)
- stringify :: ContextValue String -> TemplateRunner String String
- isTruthy :: ContextValue a -> TemplateRunner a Bool
- force :: ContextValue a -> TemplateRunner a (ContextValue a)
Documentation
compileTemplateItem :: Item String -> Compiler Template Source #
Takes an item and compiles a template from it.
loadTemplate :: Identifier -> TemplateRunner a Template Source #
applyTemplate :: Identifier -> TemplateRunner String () Source #
reduceBlocks :: [Block] -> TemplateRunner String String Source #
applyBlocks :: [Block] -> TemplateRunner String [ContextValue String] Source #
applyBlock :: Block -> TemplateRunner String (ContextValue String) Source #
applyAltBlock :: Expression -> [Block] -> [ApplyBlock] -> Maybe DefaultBlock -> TemplateRunner String [ContextValue String] Source #
eval :: Expression -> TemplateRunner a (ContextValue a) Source #
isTruthy :: ContextValue a -> TemplateRunner a Bool Source #
force :: ContextValue a -> TemplateRunner a (ContextValue a) Source #