Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- runSite :: forall r. (Show r, Eq r, EmaStaticSite r) => SiteArg r -> IO [FilePath]
- runSite_ :: forall r. (Show r, Eq r, EmaStaticSite r) => SiteArg r -> IO ()
- runSiteWithCli :: forall r. (Show r, Eq r, EmaStaticSite r) => Cli -> SiteArg r -> IO (RouteModel r, DSum Action Identity)
Documentation
:: forall r. (Show r, Eq r, EmaStaticSite r) | |
=> SiteArg r | The input required to create the |
-> IO [FilePath] |
Run the given Ema site,
Takes as argument the associated SiteArg
.
In generate mode, return the generated files. In live-server mode, this function will never return.
runSite_ :: forall r. (Show r, Eq r, EmaStaticSite r) => SiteArg r -> IO () Source #
Like runSite
but discards the result
runSiteWithCli :: forall r. (Show r, Eq r, EmaStaticSite r) => Cli -> SiteArg r -> IO (RouteModel r, DSum Action Identity) Source #
Like runSite
but takes the CLI action. Also returns more information.
Useful if you are handling the CLI arguments yourself.
Use "void $ Ema.runSiteWithCli def ..." if you are running live-server only.