# Csv to Html table generator for [Hakyll](https://hackage.haskell.org/package/hakyll) ## Turns this ```csv Year,Make,Model,Description,Price 1997,Ford,E350,"ac, abs, moon",3000.00 1999,Chevy,"Venture ""Extended Edition""","",4900.00 1999,Chevy,"Venture ""Extended Edition, Very Large""",,5000.00 1996,Jeep,Grand Cherokee,"MUST SELL! air, moon roof, loaded",4799.00 ``` ## Into this ```html
Year Make Model Description Price
1997 Ford E350 ac, abs, moon 3000.00
1999 Chevy Venture "Extended Edition" 4900.00
1999 Chevy Venture "Extended Edition, Very Large" 5000.00
1996 Jeep Grand Cherokee MUST SELL! air, moon roof, loaded 4799.00
``` # Usage ```haskell {-# LANGUAGE OverloadedStrings #-} import Hakyll import Hakyll.Contrib.Csv main :: IO () main = hakyll $ do match "csv/*.csv" $ do route $ setExtension "html" `composeRoutes` gsubRoute "csv/" (const "") compile $ csvTable >>= loadAndApplyTemplate "templates/layout.html" defaultContext >>= relativizeUrls match "templates/*" $ compile templateCompiler ```