Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Content.Html.R

module R : sig..end

Creation of HTML content from shared reactive signals and data (Shared ). For the operations provided, see Html_sigs.T .


include Html_sigs.Make(Xml_shared)(Svg.R.Raw).T
val pcdata : 
  string Shared.React.S.t -> [> Html_types.span ] Content.Html.elt

pcdata s produces a node of type [> Html_types.span] elt out of the string signal s.

val node : 'a Content.Html.elt Shared.React.S.t -> 'a Content.Html.elt

node s produces an 'a elt out of the shared reactive signal s.

val filter_attrib : 
  'a Content.Html.attrib ->
  bool Shared.React.S.t -> 'a Content.Html.attrib

filter_attrib a b amounts to the attribute a while b is true, and to no attribute while b is false.