summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll/Render.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2009-12-13 10:15:21 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2009-12-13 10:15:21 +0100
commita18789a6fbc1cff2a3828a626769cc96a8526026 (patch)
treeeb114ec09129960e2456d1b83facae49f0144517 /src/Text/Hakyll/Render.hs
parent5d64ff7d5c9735ea17638e5b66dba0a44a0308db (diff)
downloadhakyll-a18789a6fbc1cff2a3828a626769cc96a8526026.tar.gz
Moved writePage to Text.Hakyll.Page.
Diffstat (limited to 'src/Text/Hakyll/Render.hs')
-rw-r--r--src/Text/Hakyll/Render.hs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Text/Hakyll/Render.hs b/src/Text/Hakyll/Render.hs
index daca5b1..a94ac2d 100644
--- a/src/Text/Hakyll/Render.hs
+++ b/src/Text/Hakyll/Render.hs
@@ -1,6 +1,5 @@
module Text.Hakyll.Render
( depends,
- writePage,
render,
renderAndConcat,
renderChain,
@@ -29,13 +28,6 @@ depends file dependencies action = do
valid <- isCacheValid (toDestination file) dependencies
unless valid action
--- | Write a page to the site destination.
-writePage :: Page -> IO ()
-writePage page = do
- let destination = toDestination $ getURL page
- makeDirectories destination
- B.writeFile destination (getBody page)
-
-- | Render to a Page.
render :: Renderable a
=> FilePath -- ^ Template to use for rendering.