package eliom
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=a1fe1f37d5163c25818afcc5ca8d6ecf
sha512=4ac91ff05bb43eea5d5e1e046bc54a0c97707db28be3c2f65437fbb1b3457171f715105f7f0621837494c014dc05473f26bc919483b0e47d394a2bbe19b319a7
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