Skip to content

Commit

Permalink
Add sass compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
irv committed Oct 2, 2011
1 parent e5e6dcc commit b94096a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/site.hs
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,17 @@ main = hakyll $ do
compile $ getResourceString >>> unixFilter "yui-compressor" ["--type", "js"]
match "js/*.coffee" $ do
route $ setExtension "js"
compile $ getResourceString >>> unixFilter "coffee" ["--compile", "-s"] >>> unixFilter "yui-compressor" ["--type", "js"]
match "css/*" $ do
compile $ getResourceString
>>> unixFilter "coffee" ["--compile", "-s"]
>>> unixFilter "yui-compressor" ["--type", "js"]
match "css/*.css" $ do
route idRoute
compile $ getResourceString >>> unixFilter "yui-compressor" ["--type", "css"]

match "css/*.sass" $ do
route idRoute
compile $ getResourceString
>>> unixFilter "sass" ["-s", "--scss"]
>>> unixFilter "yui-compressor" ["--type", "css"]
match "about/*" $ do
route $ setExtension ".html"
compile $ pageCompiler
Expand Down

0 comments on commit b94096a

Please sign in to comment.