Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- generateSiteFromModel :: forall r m. (MonadIO m, MonadLoggerIO m, MonadFail m, Eq r, Show r, IsRoute r, EmaStaticSite r) => FilePath -> RouteModel r -> m [FilePath]
- generateSiteFromModel' :: forall r m. (MonadIO m, MonadLoggerIO m, MonadError Text m, Eq r, Show r, EmaStaticSite r) => FilePath -> RouteModel r -> m [FilePath]
Documentation
generateSiteFromModel Source #
:: 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 #
:: 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.