Template repo for Ema static site generator
26
stars
195
commits
CSS
primary language
Mar 21, 2026
updated
A very simple example Ema site that is based on Lucid2 & TailwindCSS 3. Use it to bootstrap your next static site using Ema.
The generated HTML site can be previewed here: https://srid.github.io/ema-template/
To develop with full IDE support in Visual Studio Code, follow these steps:
nix develop -i -c haskell-language-server to sanity check your environmentnix develop -c just run in terminal (just run if direnv is already active), to launch the Ema dev server, and navigate to http://localhost:9001/All but the final step need to be done only once. Check the Ema tutorial next.
flake.nix)ema-template in place of haskell-template)nix develop -c just run), see ./.ghcid (if you leave out --port a random port will be used)nix build .#site
# Alternatively:
# > mkdir ../output
# > nix run . -- --base-url=/ gen ../output
To use this repository without Nix (such as with plain Cabal or Stack) you need to have the following installed manually:
Procfile; see flake.nix to determine what should go in its ProcfileOnce all the above are installed and setup, run foreman start to start the Ema live server.
CSS
58.8%
Haskell
21.3%
Nix
18.1%
Just
1.1%
Template repo for Ema static site generator
26
stars
195
commits
CSS
primary language
Mar 21, 2026
updated
A very simple example Ema site that is based on Lucid2 & TailwindCSS 3. Use it to bootstrap your next static site using Ema.
The generated HTML site can be previewed here: https://srid.github.io/ema-template/
To develop with full IDE support in Visual Studio Code, follow these steps:
nix develop -i -c haskell-language-server to sanity check your environmentnix develop -c just run in terminal (just run if direnv is already active), to launch the Ema dev server, and navigate to http://localhost:9001/All but the final step need to be done only once. Check the Ema tutorial next.
flake.nix)ema-template in place of haskell-template)nix develop -c just run), see ./.ghcid (if you leave out --port a random port will be used)nix build .#site
# Alternatively:
# > mkdir ../output
# > nix run . -- --base-url=/ gen ../output
To use this repository without Nix (such as with plain Cabal or Stack) you need to have the following installed manually:
Procfile; see flake.nix to determine what should go in its ProcfileOnce all the above are installed and setup, run foreman start to start the Ema live server.
CSS
58.8%
Haskell
21.3%
Nix
18.1%
Just
1.1%