1
1
mirror of https://github.com/srid/ema.git synced 2024-09-11 15:05:23 +03:00

readme: add Discussion

This commit is contained in:
Sridhar Ratnakumar 2022-08-12 16:56:43 -04:00
parent be3d657f38
commit 459d3899e0
2 changed files with 9 additions and 2 deletions

View File

@ -19,3 +19,10 @@ To run the docs, run `nix run github:EmaApps/emanote -- -L ./docs`.
## Getting Started
https://ema.srid.ca/start
## Discussion
To discuss the Ema project, [join Matrix][matrix] or post in [GitHub Discussions][ghdiscuss].
[matrix]: https://matrix.to/#/#ema:matrix.org
[ghdiscuss]: https://github.com/EmaApps/ema/discussions

View File

@ -21,6 +21,6 @@ newtype Dynamic m a
It is a pair of values: the initial value, and a function that knows how to update that value over time using the user-provided update function (`a -> m ()`). Dynamic's are an `Applicative`, so they compose using `liftA*` family of functions.
The [[site]]'s `siteInput` method returns a `Dynamic` of [[model]], which represents all the data required to render a site. If you do want [[hot-reload]], you may return a `pure` value.
The [[site]]'s `siteInput` method returns a `Dynamic` of [[model]], which represents all the data required to render a site. If you do not want [[hot-reload]], you may return a `pure` value.
The use of a time-varying `Dynamic` is what enables [[hot-reload]]. See [here](https://github.com/fpindia/fpindia-site/pull/24/files) for an example of making a model time-varying. Checkout [[unionmount]] to produce a `Dynamic` of a model that updates based on filesystem tree.
The use of a time-varying `Dynamic` is what enables [[hot-reload]]. See [here](https://github.com/fpindia/fpindia-site/pull/24/files) for an example of making a model time-varying. Checkout [[unionmount]] to produce a `Dynamic` of a model that updates based on the filesystem tree.