Copyright | (c) eliza 2016 |
---|---|
License | MIT |
Maintainer | me@eliza.link |
Safe Haskell | None |
Language | Haskell2010 |
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
- hamlCompiler :: Compiler (Item String)
- hamlCompilerWith :: HamletSettings -> Map Text HamletData -> Compiler (Item String)
- hamlTemplateCompiler :: Compiler (Item Template)
- hamlTemplateCompilerWith :: HamletSettings -> Map Text HamletData -> Compiler (Item Template)
- renderHaml :: HamletSettings -> Map Text HamletData -> Item String -> Compiler (Item String)
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.