Safe Haskell | None |
---|---|
Language | Haskell2010 |
- embedAssets :: IO Herringbone -> Q Exp
Documentation
embedAssets :: IO Herringbone -> Q Exp Source
Precompile and embed all assets into your source code. Call this function in a Template Haskell splice. Any asset compilation failures will result in a compile error.
For example:
assets :: [(LogicalPath, ByteString)] assets = $(embedAssets
(herringbone (setSourceDir "assets" . setDestDir ".compiled_assets")) )