@@ -13,15 +13,25 @@ the CSS. This would be an example of such a file:
1313``` haskell
1414{-# LANGUAGE OverloadedStrings #-}
1515import Clay
16−import qualified Data.Text.Lazy.IO as T
1716
1817test :: Css
1918test = ...
2019
2120main :: IO ()
22−main = T.putStr $ render test
21+main = putCss test
2322```
2423
24+If you prefer the compact version, you're going to have an extra import:
25+
26+
27+``` haskell
28+import qualified Data.Text.Lazy.IO as T
29+
30+main :: IO ()
31+main = T.putStr $ renderWith compact test
32+```
33+
34+
2535Let's assume such a file is called `css/foo.hs`. In our compiled site, we want
2636to map this to `css/foo.css`. Hence, the route is a simple `setExtension`. For
2737compilation, we simply pass the Clay file through `runghc` with no options.
@@ -30,6 +40,9 @@ compilation, we simply pass the Clay file through `runghc` with no options.
3040match "css/*.hs" $ do
3141 route $ setExtension "css"
3242 compile $ getResourceString >>= withItemBody (unixFilter "runghc" [])
43+
44+-- cabal sandbox users can use (unixFilter "cabal" ["exec", "runghc"])
45+-- given that you've added cabal to your PATH
3346```
3447
3548The major advantage of using this method (as opposed to importing the Clay files