mirror of
https://github.com/srid/ema.git
synced 2024-11-25 20:12:20 +03:00
Haskell static site generator that is change-aware
.github/workflows | ||
.vscode | ||
bin | ||
src | ||
.ghcid | ||
.gitignore | ||
CHANGELOG.md | ||
default.nix | ||
ema.cabal | ||
flake.lock | ||
flake.nix | ||
hie.yaml | ||
LICENSE | ||
README.md | ||
shell.nix |
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
https://user-images.githubusercontent.com/3998/116333460-789c1400-a7a1-11eb-8d28-297c349e42c6.mp4
Hacking
Run bin/run
(or Ctrl+Shift+B in VSCode). This runs the clock example (which updates every second, only to demonstrate hot reload); modify ./.ghcid
to run a different example.
Getting Started
Use this template: https://github.com/srid/ema-docs