ema-0.10.0.0: Static site generator library with hot reload
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ema.Generate

Synopsis

Documentation

generateSiteFromModel Source #

Arguments

:: forall r m. (MonadIO m, MonadLoggerIO m, MonadFail m, Eq r, Show r, IsRoute r, EmaStaticSite r) 
=> FilePath

Target directory to write files to. Must exist.

-> RouteModel r

The model data used to generate assets.

-> m [FilePath] 

Generate the static site at dest

The *only* data we need is the RouteModel.

generateSiteFromModel' Source #

Arguments

:: forall r m. (MonadIO m, MonadLoggerIO m, MonadError Text m, Eq r, Show r, EmaStaticSite r) 
=> FilePath 
-> RouteModel r 
-> m [FilePath]

List of generated files.

Like generateSiteFromModel but without buffering or error handling.