1
1
mirror of https://github.com/srid/ema.git synced 2024-11-29 09:25:14 +03:00
ema/README.md

26 lines
800 B
Markdown
Raw Normal View History

2021-04-19 17:48:00 +03:00
# ema
<img width="10%" src="./docs/ema.svg">
2021-04-20 22:20:12 +03:00
2021-04-26 21:28:05 +03:00
[![Hackage](https://img.shields.io/hackage/v/ema.svg?logo=haskell)](https://hackage.haskell.org/package/ema)
Ema is a next-gen **Haskell** library for building [jamstack-style](https://jamstack.org/) static sites, with fast hot reload. See [ema.srid.ca](https://ema.srid.ca/) for further information.
2021-04-19 17:48:00 +03:00
2021-04-24 20:44:53 +03:00
The simplest Ema app looks like this:
2021-04-19 18:18:38 +03:00
```haskell
main :: IO ()
main = do
let name :: Text = "Ema"
runEmaPure $ \_ ->
encodeUtf8 $ "<b>Hello</b>, from " <> name
2021-04-19 18:18:38 +03:00
```
2021-04-19 18:07:52 +03:00
## Hacking
2021-04-27 00:42:00 +03:00
Run `bin/run` (or <kbd>Ctrl+Shift+B</kbd> 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