herringbone-0.1.1: A library for compiling and serving static web assets.

Safe HaskellNone
LanguageHaskell2010

Web.Herringbone.Internal.FindAsset

Synopsis

Documentation

findAsset :: Herringbone -> LogicalPath -> IO (Either AssetError Asset) Source

The most important function in this library. Attempts to find the asset referenced by the given LogicalPath, compiles it if necessary (based on file modification time), and returns it to you as an Asset (or an AssetError, if something went wrong).