package js_of_ocaml-tyxml

  1. Overview
  2. Docs

Module Js_of_ocaml_tyxml.Tyxml_jsSource

Tyxml interface. Example of use for HTML:

 module T = Tyxml_js.Html
 let html = T.(
   div ~a:[a_class ["several"; "css"; "class"]; a_id "id-of-div"] [
     ul ~a:[a_class ["one-css-class"]; a_id "id-of-ul"] [
       li [
         a ~a:[a_id "id-of-a"; a_href "/url/file.html"] [
           pcdata "Go to /url/file.html"
         ]
       ]
     ]
   ]
 )
Sourcemodule Xml : XML with module W = Xml_wrap.NoWrap
Sourcemodule Html5 : Html_sigs.Make(Xml)(Svg).T with module Xml.W = Xml_wrap.NoWrap and type 'a elt = 'a Html.elt and type +'a attrib = 'a Html.attrib
Sourcemodule Register : sig ... end
Sourcemodule Wrap : Xml_wrap.T with type 'a t = 'a React.signal and type 'a tlist = 'a ReactiveData.RList.t and type ('a, 'b) ft = 'a -> 'b
Sourcemodule Util : sig ... end
Sourcemodule R : sig ... end
Sourcemodule To_dom : Tyxml_cast_sigs.TO with type 'a elt = 'a Html.elt
Sourcemodule Of_dom : Tyxml_cast_sigs.OF with type 'a elt = 'a Html.elt