package eliom

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Eliom_sharedSource

This module implements shared (i.e., client-server) versions of the React and ReactiveData libraries.

Client-side signals and data are type-wise and behavior-wise equivalent to those provided by the underlying React and ReactiveData libraries. Thus, all the operations from React and ReactiveData apply. We provide extended versions of these libraries.

Sourceval to_signal : init:'a -> ?eq:('a -> 'a -> bool) -> 'a React.S.t Lwt.t -> 'a React.S.t

to_signal ~init s converts the Lwt-wrapped signal s into a regular signal with initial value init.

Sourcemodule Value : Eliom_shared_sigs.VALUE with type +'a t = 'a

Accessing shared values

Sourcemodule React : sig ... end

Shared implementation of React; client-side behavior is like standard React

Sourcemodule FakeReactiveData : sig ... end

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.

Sourcemodule ReactiveData : sig ... end

Shared implementation of ReactiveData; client-side behavior is like standard ReactiveData

OCaml

Innovation. Community. Security.