hakyll-blaze-templates-0.1.0.0: Blaze templates for Hakyll

Safe HaskellNone

Hakyll.Web.Template.Blaze

Synopsis

Documentation

type Template m a = (String -> m String) -> Item a -> m HtmlSource

applyTemplateSource

Arguments

:: Template Compiler String

Blaze template

-> Context String

Hakyll context

-> Item String

The item

-> Compiler (Item String)

Resulting HTML

applyTemplateListWithSource

Arguments

:: String

String to join template with

-> Template Compiler String

Blaze template

-> Context String

Hakyll context

-> [Item String]

List of items

-> Compiler String

Resulting HTML

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