1
1
mirror of https://github.com/srid/ema.git synced 2024-11-29 09:25:14 +03:00
ema/docs/guide.md
2022-08-06 11:28:05 -04:00

17 lines
338 B
Markdown

---
order: 3
---
# Guide
Writing an Ema app is an act in three parts:
1. Define your site **routes** as Haskell ADTs:
- [[route]] and [[generic]]
2. Define your site **data model** as a Haskell record:
- [[model]] and [[dynamic]]
3. Connect it all using `EmaSite`
- [[site]]
4. Optionally, [[compose|compose multiple apps]]