summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Hakyll/Web.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Hakyll/Web.hs b/src/Hakyll/Web.hs
index 92cdab5..73f818a 100644
--- a/src/Hakyll/Web.hs
+++ b/src/Hakyll/Web.hs
@@ -3,9 +3,12 @@
module Hakyll.Web
( defaultPageRead
, defaultTemplateRead
+ , defaultHamletTemplateRead
+ , defaultHamletTemplateReadWith
, defaultRelativizeUrls
, defaultCopyFile
, defaultCompressCss
+ , defaultApplyTemplate
) where
import Prelude hiding (id)
@@ -52,3 +55,7 @@ defaultCopyFile = getIdentifier >>^ CopyFile . toFilePath
defaultCompressCss :: Compiler () String
defaultCompressCss = getResourceString >>^ compressCss
+
+defaultApplyTemplate :: Identifier -- ^ Template
+ -> Compiler (Page String) (Page String) -- ^ Compiler
+defaultApplyTemplate identifier = require identifier (flip applyTemplate)