herringbone-embed-0.1.0: Embed preprocessed web assets in your executable with Template Haskell.

Safe HaskellNone

Web.Herringbone.Precompile

Synopsis

Documentation

precompile :: Herringbone -> IO [(LogicalPath, AssetError)]Source

Precompiles all assets.

embedAssets :: IO Herringbone -> Q ExpSource

Precompile and embed all assets into your source code. Call this function in a Template Haskell splice.

Returns: (Errors, Files) where:

 type Errors = [(LogicalPath, AssetError)]
 type Files = [(LogicalPath, ByteString)] 

The second component is a mapping of filenames to file contents.