Safe Haskell | None |
---|
- type Template m a = (String -> m String) -> Item a -> m Html
- applyTemplate :: Template Compiler String -> Context String -> Item String -> Compiler (Item String)
- applyTemplateList :: Template Compiler String -> Context String -> [Item String] -> Compiler String
- applyTemplateListWith :: String -> Template Compiler String -> Context String -> [Item String] -> Compiler String
- toHtml :: String -> Html
- safeToHtml :: String -> Html
Documentation
applyTemplateList :: Template Compiler String -> Context String -> [Item String] -> Compiler StringSource
toHtml :: String -> HtmlSource
Synonym for blaze's toHtml. The only difference being that input string is enforced to String type. This is necessary for easy use of this function with -XOverloadedStrings. Otherwise compiler can't infer the appropriate type to use and fails.
safeToHtml :: String -> HtmlSource
Synonym for blaze's preEscapedToHtml. The only difference being that input string is enforced to String type. This is necessary for easy use of this function with -XOverloadedStrings. Otherwise compiler can't infer the appropriate type to use and fails. Also safeToHtml sounds better than preEscapedToHtml