@hackage ema0.1.0.0
Static site generator library with hot reload
Installation
Dependencies (35)
- aeson
- async
- base >=4.13.0.0 && <=4.17.0.0
- blaze-html
- blaze-markup
- commonmark Show all…
Dependents (3)
@hackage/ema-generics, @hackage/ema-extra, @hackage/emanote
Package Flags
with-examples
(on by default)
Include examples and their dependencies
with-helpers
(on by default)
Include helper modules based on blaze-html
ema
Ema is a next-gen Haskell library for building jamstack-style static sites, with fast hot reload. See ema.srid.ca for further information.
The simplest Ema app looks like this:
main :: IO ()
main = do
let name :: Text = "Ema"
runEmaPure $ \_ ->
encodeUtf8 $ "<b>Hello</b>, from " <> name
Hacking
Run bin/run (or Ctrl+Shift+B in VSCode). This runs the documentation example; modify ./.ghcid to run a different example, such as the clock example - which updates every second, demonstrating hot reload.