diff options
-rw-r--r-- | src/Hakyll/Web/Template.hs | 5 |
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) |