1
1
mirror of https://github.com/srid/ema.git synced 2024-12-01 15:13:36 +03:00
ema/docs/topics/live-server.md
Sridhar Ratnakumar e465275c19 docs: Write topics
2022-08-06 12:15:42 -04:00

549 B

Live Server

The "run" command of cli runs the live-server, as opposed to the "gen" command which generates the static site one off. The live-server is a simple HTTP server that serves the Ema site "on the fly" (without doing O(n) static-site generation). Furthermore, changes to your model (via dynamic) will automatically hot-reload the browser clients to display the new HTML as rendered using the new model value.

It is not unusual to write Ema apps purely for the live server UX, and disable static site generation entirely.