A library for building dynamic webapps, using Js_of_ocaml.
OCaml HTML Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example v0.11.118.00+89 Aug 17, 2018
src v0.11.117.19+55 Aug 10, 2018
.gitignore 114.35+03 Mar 7, 2017
CONTRIBUTING.md v0.11.117.08+54 May 23, 2018
LICENSE.md v0.11.117.08+54 May 23, 2018
Makefile v0.11.117.08+54 May 23, 2018
README.org v0.11.117.11+22 Jun 15, 2018
incr_dom.opam v0.11.117.19+55 Aug 10, 2018
jbuild v0.11.117.14+23 Jul 12, 2018

README.org

Incr_dom: a library for writing dynamic web-apps

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 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, or here on the wiki.