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

17 lines
338 B
Markdown
Raw Normal View History

2022-07-05 18:29:38 +03:00
---
order: 3
---
# Guide
2022-08-06 18:28:05 +03:00
Writing an Ema app is an act in three parts:
2022-07-05 18:29:38 +03:00
2022-07-15 00:43:11 +03:00
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]]
2022-07-05 18:29:38 +03:00