Safe Haskell | None |
---|
- findAsset :: Herringbone -> LogicalPath -> IO (Either AssetError Asset)
- findAssetWithMapping :: Herringbone -> LogicalPath -> BuildMapping -> IO (Either AssetError Asset)
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).
findAssetWithMapping :: Herringbone -> LogicalPath -> BuildMapping -> IO (Either AssetError Asset)Source