summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2016-08-04 14:13:24 +0200
committerJasper Van der Jeugt <m@jaspervdj.be>2016-08-04 14:13:24 +0200
commitfdb298d6a22dbab32d5da6c653b600d1b8f93143 (patch)
treec7f335d08d00bf02e01e139102f0c0458f07682a /src
parent82ba9542e75238f4b69d1a497d429962cdff1e14 (diff)
downloadhakyll-fdb298d6a22dbab32d5da6c653b600d1b8f93143.tar.gz
Fix partials and add a test
Fixes #460
Diffstat (limited to 'src')
-rw-r--r--src/Hakyll/Web/Template/Internal.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hakyll/Web/Template/Internal.hs b/src/Hakyll/Web/Template/Internal.hs
index 3686914..d0e4d47 100644
--- a/src/Hakyll/Web/Template/Internal.hs
+++ b/src/Hakyll/Web/Template/Internal.hs
@@ -138,8 +138,8 @@ applyTemplate' tes context x = go tes
return $ intercalate sep bs
applyElem (Partial e) = do
- p <- applyExpr e >>= getString e
- tpl' <- loadBody (fromFilePath p)
+ p <- applyExpr e >>= getString e
+ Template tpl' <- loadBody (fromFilePath p)
applyTemplate' tpl' context x
---------------------------------------------------------------------------