Copyright | (c) Eduardo Trujillo, 2016 |
---|---|
License | Apache |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
The Main module contains a wrapper function that can be used as your program's main function. It encapsulates both the Hakyll commands and the server functionality into a single application.
Since this module mainly provides some glue for putting this two
applications together, the actual documentation for the server part is
available on Serve
.
Main wrappers
hakyllServe :: Rules a -> IO () Source #
The serve cousin of hakyll
. It provides a wrapper of the
usual Hakyll commands and a command for serving the built site.
hakyllServeWith :: HakyllServeConfiguration -> Rules a -> IO () Source #
The serve cousin of Hakyll.hakyllWith
. It provides a wrapper of the
usual Hakyll commands and a command for serving the built site.
Configuration
data HakyllServeConfiguration Source #
The configuration for the server process.
The different transforms can be used to specify how the configuration changes depending on the stage. While starting up, the server process will take the base configuration, check the stage and pass the configuration through the appropriate transformer.