1
1
mirror of https://github.com/srid/ema.git synced 2024-12-01 15:13:36 +03:00
ema/README.md
Sridhar Ratnakumar 8d2a237141 Fix logo url
2021-04-26 18:10:11 -04:00

813 B

ema

Hackage

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