diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-04-06 14:05:29 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-04-06 14:05:29 +0200 |
commit | 80596b1f56b7d6f2d4ff64d566ae845b7c7a01f6 (patch) | |
tree | bf6b02d68833821f7b57f40edc8dd8a60543fa09 /examples/brochure/hakyll.hs | |
parent | c3dbb0ca77f65461e60cb801b867fff18afda2be (diff) | |
parent | ce444a426ac037c2b32568d8e6325aa5762bf913 (diff) | |
download | hakyll-80596b1f56b7d6f2d4ff64d566ae845b7c7a01f6.tar.gz |
Merge branch 'master' into dependency-analyzer
Diffstat (limited to 'examples/brochure/hakyll.hs')
-rw-r--r-- | examples/brochure/hakyll.hs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/examples/brochure/hakyll.hs b/examples/brochure/hakyll.hs index 819924f..1bc5919 100644 --- a/examples/brochure/hakyll.hs +++ b/examples/brochure/hakyll.hs @@ -6,13 +6,15 @@ import Hakyll main :: IO () main = hakyll $ do - route "css/*" idRoute - compile "css/*" compressCssCompiler + match "css/*" $ do + route idRoute + compile compressCssCompiler - compile "templates/*" templateCompiler + match "templates/*" $ compile templateCompiler - forM_ ["about.rst", "index.markdown", "code.lhs"] $ \page -> do - route page $ setExtension "html" - compile page $ pageCompiler - >>> applyTemplateCompiler "templates/default.html" - >>> relativizeUrlsCompiler + forM_ ["about.rst", "index.markdown", "code.lhs"] $ \page -> + match page $ do + route $ setExtension "html" + compile $ pageCompiler + >>> applyTemplateCompiler "templates/default.html" + >>> relativizeUrlsCompiler |