package eliom
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=089b68d5bac8dfae1116923f6d95b39c
sha512=b4828b57d963d217ca0efd871b1c0b3f8816c7971825eb49d0dc06dbd91004fc659f83f9121d849ab8de47560941d07b2b9c1838b3387e7c1a4d3d6b9058936b
doc/eliom.server/Eliom_shared/index.html
Module Eliom_shared
Source
This module implements shared (i.e., client-server) versions of the React and ReactiveData libraries.
On the server side, the reactive signals and data structures are comprised of a server-side version and a client-side version. The server-side signals (and data structures) are evaluated only once.
All operations on signals and data need to be provided in the form of shared functions, i.e., functions that have both a client-side and a server-side implementation.
to_signal ~init s
converts the Lwt-wrapped signal s
into a regular signal with initial value init
.
Accessing shared values
This is a dummy ReactiveData module that allows us to refer to client-side ReactiveData types on the server side, without actually linking against ReactiveData.
Shared implementation of ReactiveData