hakyll-shakespeare-0.1.0.0.1: Hakyll Hamlet compiler

Copyright(c) eliza 2016
LicenseMIT
Maintainerme@eliza.link
Safe HaskellNone
LanguageHaskell2010

Hakyll.Web.Hamlet

Description

If you using option except default, read Text.Hamlet.Runtime.

import Hakyll
import Hakyll.Web.Hamlet

main :: IO ()
main = hakyll $ do
    match "templates/*.hamlet" $ compile hamlTemplateCompiler

Synopsis

Documentation

hamlCompiler :: Compiler (Item String) Source #

Read complete file contents as a string using Hamlet, with the default options.

hamlCompilerWith :: HamletSettings -> Map Text HamletData -> Compiler (Item String) Source #

Read complete file contents as a string using Hamlet, with the spplied options.

hamlTemplateCompiler :: Compiler (Item Template) Source #

Read complete file contents as a template, with the default options.

hamlTemplateCompilerWith :: HamletSettings -> Map Text HamletData -> Compiler (Item Template) Source #

Read complete file contents as a template, with the spplied options.

renderHaml :: HamletSettings -> Map Text HamletData -> Item String -> Compiler (Item String) Source #

Read a string using hamlet.