The herringbone package

[Tags: library, mit]

A library for compiling and serving static web assets. For more information, please see

[Skip to ReadMe]


Versions0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.1.0, 0.1.1
Change logNone available
Dependenciesbase (==4.6.*), bytestring, containers, directory, herringbone, http-types, mtl, old-locale, process, process-listlike, system-fileio, system-filepath, text, time, transformers, unix-compat, wai (>=2.0 && <3), wai-app-static, warp [details]
AuthorHarry Garrood
Source repositoryhead: git clone
UploadedMon Jan 6 01:20:04 UTC 2014 by hdgarrood
Downloads1297 total (62 in last 30 days)
0 []
StatusDocs available [build log]
Successful builds reported [all 1 reports]




Maintainers' corner

For package maintainers and hackage trustees

Readme for herringbone-0.0.7


herringbone is a Haskell library for compiling and serving web assets. It aims to make it dead simple to create a 'Network.Wai.Middleware' or 'Network.Wai.Application' which deals with all of your static assets, including preprocessing for languages like Fay, CoffeeScript, Sass, and LESS.

It takes most of its inspiration from the Ruby library, Sprockets, hence the name.



How to use it

import Web.Herringbone

fay, sass :: PP

hb = Herringbone
hb = herringbone
    ( addSourceDir "assets"
    . setDestDir   "compiled_assets"
    . addPreprocessors [fay, sass]

-- You can now access assets programmatically
asset <- findAsset hb (fromJust . makeLogicalPath $ ["application.js"])

-- Or serve them with a Wai application
app = toApplication hb

For more information, go and look at the documentation on Hackage!