mirror of
https://github.com/srid/ema.git
synced 2024-11-29 09:25:14 +03:00
update README for the PR
This commit is contained in:
parent
61723ead42
commit
9d81ca3db3
@ -2,7 +2,7 @@
|
||||
|
||||
<img width="10%" src="./ema.svg">
|
||||
|
||||
ema is a **WIP** next-gen Haskell static site generator that is *change-aware*. In addition to static site generation, it provides a live server that hot-reload's on code *or* data change[^1].
|
||||
ema is a **WIP** next-gen Haskell static site generator that is *change-aware*. In addition to static site generation, it provides a live server that hot-reload's on code *or* data change.
|
||||
|
||||
The ultimate goal of ema is to make it possible to easily implement your own [neuron](https://neuron.zettel.page/), or just about any app that creates a browser view of arbitrarily changing data (on disk, database, or whatever). ema is designed to facilitate creation of apps whose data is normally *edited* via traditional mechanisms (eg: text editor) but *rendered* as a delightful web page - so as to provide an economical read-only view, of your data, on desktop & mobile.
|
||||
|
||||
@ -16,8 +16,6 @@ main = do
|
||||
encodeUtf8 $ "<b>Hello,</b> " <> name
|
||||
```
|
||||
|
||||
[^1]: At the moment, only data change triggers a true hot reload; but code change triggers reload via a full page refresh in the browser, which creates a subtle flicker. Ideally this should be improved somehow, possibly by persisting the server and websocket across ghci(d) restarts (cf. [ghci-websockets](https://github.com/j-mueller/ghci-websockets)).
|
||||
|
||||
## Hacking
|
||||
|
||||
Run `bin/run` (or <kbd>Ctrl+Shift+B</kbd> in VSCode). This runs the clock example; modify `./.ghcid` to run a different example.
|
||||
|
Loading…
Reference in New Issue
Block a user