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

Ema.App

Synopsis

Documentation

runSite Source #

Arguments

:: forall r. (Show r, Eq r, EmaStaticSite r) 
=> SiteArg r

The input required to create the Dynamic of the RouteModel

-> 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.