summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-18 18:15:00 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-18 18:15:00 +0100
commit7aac6ccd5dfc635ad77bc74781ab06b0b1b9fe5e (patch)
treefa84d6b829d65c57ce0d52562f99dcb320ee6e65
parent03fb17ec6d7dc625e4faecdd4fdc778c998262c9 (diff)
downloadhakyll-7aac6ccd5dfc635ad77bc74781ab06b0b1b9fe5e.tar.gz
Add applyTemplateCompiler
-rw-r--r--src/Hakyll/Web/Template.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Hakyll/Web/Template.hs b/src/Hakyll/Web/Template.hs
index 1a399b3..5b38ba3 100644
--- a/src/Hakyll/Web/Template.hs
+++ b/src/Hakyll/Web/Template.hs
@@ -47,6 +47,7 @@ module Hakyll.Web.Template
, applySelf
, templateCompiler
, templateCompilerWith
+ , applyTemplateCompiler
) where
import Control.Arrow
@@ -102,3 +103,7 @@ templateCompilerWith settings =
then readHamletTemplateWith settings string
-- Hakyll template
else readTemplate string
+
+applyTemplateCompiler :: Identifier -- ^ Template
+ -> Compiler (Page String) (Page String) -- ^ Compiler
+applyTemplateCompiler identifier = require identifier (flip applyTemplate)