hakyll-blaze-templates-0.1.1.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

string

Arguments

:: String

String to insert.

-> Markup

Resulting HTML fragment.

Create an HTML snippet from a String.

preEscapedString

Arguments

:: String

String to insert.

-> Markup

Resulting HTML fragment.

Create an HTML snippet from a String without escaping

toHtml :: String -> HtmlSource

toHtml specialised to String.

safeToHtml :: String -> HtmlSource

preEscapedToHtml specialised to String Also safeToHtml sounds better than preEscapedToHtml