incr_dom

AuthorJane Street Group, LLC <opensource@janestreet.com>
LicenseApache-2.0
Homepagehttps://github.com/janestreet/incr_dom
Issue Trackerhttps://github.com/janestreet/incr_dom/issues
Maintaineropensource@janestreet.com
Dependencies
&async_js>= v0.11&v0.12
async_kernel>= v0.11&v0.12
core_kernel>= v0.11&v0.12
incr_map>= v0.11&v0.12
incr_select>= v0.11&v0.12
incremental_kernel>= v0.11&v0.12
jbuilder>= 1.0+beta18.1
js_of_ocaml>= 3.0
js_of_ocaml-ppx
ocaml-migrate-parsetree>= 1.0
ppx_jane>= v0.11&v0.12
ppxlib>= 0.1.0
virtual_dom>= v0.11&v0.12
Availableocaml-version >= "4.04.1"
PublishedMar 20, 2018
Source [http] https://ocaml.janestreet.com/ocaml-core/v0.11/files/incr_dom-v0.11.0.tar.gz
47ecf4cd854979e3ca9ae1c3351d17ce
StatisticsInstalled 9 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/incr_dom/incr_dom.v0.11.0/opam

A library for building dynamic webapps, using Js_of_ocaml.

The library is designed roughly on a model/view/controller model. Your application is built out of:

  • A functional model type that tracks the state of your application.

  • An incremental /view/ function for computing an HTML-like representation of how your application should render on the browser. The is based on the [[https://github.com/Matt-Esch/virtual-dom][virtual-dom]] javascript library.

  • An action type that is used to schedule events that update the model.

Combined with the ability to use Async, and in particular to send out network requests using websockets, this should allow the easy construction of rich web applications in a fairly comprehensible style.

If you want a more concrete sense of how this works, look in the examples directory.

Necessary for
incr_dom_widgets
>= v0.11.0