ContentsIndex
Framework.TEngine.TemplateFuncs
Synopsis
bold :: Maybe TContainer -> String
uppercase :: Maybe TContainer -> String
lowercase :: Maybe TContainer -> String
evenP :: Maybe TContainer -> Bool
oddP :: Maybe TContainer -> Bool
list :: String -> (String -> String) -> Maybe TContainer -> String
separateWith :: String -> Maybe TContainer -> String
children :: String -> TContainer -> TContainer
mapF :: String -> (Map String TContainer -> String) -> Map String TContainer -> TContainer -> String
isContainerTrue :: Maybe TContainer -> Bool
Documentation
bold :: Maybe TContainer -> String
uppercase :: Maybe TContainer -> String
lowercase :: Maybe TContainer -> String
evenP :: Maybe TContainer -> Bool
oddP :: Maybe TContainer -> Bool
list
:: StringItems separator (say, "; ")
-> String -> StringModify each item
-> Maybe TContainer
-> String
Show a list, transformed by given function, with given separator
separateWith :: String -> Maybe TContainer -> String
Show a list with given separator
children
:: StringName of foreign key field in the child model
-> TContainerParent model
-> TContainerList of children models
List of related (children) models
mapF
:: StringName of list-item variable
-> Map String TContainer -> StringRendering function
-> Map String TContainerCurrent context (variables)
-> TContainerA list to iterate
-> String
Apply given function (render) for each item in the list (contained in TContainer). Used in Templates.
isContainerTrue :: Maybe TContainer -> Bool
Produced by Haddock version 2.4.2