diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-08-04 14:13:24 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-08-04 14:13:24 +0200 |
commit | fdb298d6a22dbab32d5da6c653b600d1b8f93143 (patch) | |
tree | c7f335d08d00bf02e01e139102f0c0458f07682a /src | |
parent | 82ba9542e75238f4b69d1a497d429962cdff1e14 (diff) | |
download | hakyll-fdb298d6a22dbab32d5da6c653b600d1b8f93143.tar.gz |
Fix partials and add a test
Fixes #460
Diffstat (limited to 'src')
-rw-r--r-- | src/Hakyll/Web/Template/Internal.hs | 4 |
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 --------------------------------------------------------------------------- |