Module Js_of_ocaml_tyxml.Tyxml_js

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"
        ]
      ]
    ]
  ]
)
see https://ocsigen.org/tyxml/

the Tyxml project website.

see https://ocsigen.org/tyxml/dev/api/Html_sigs.T

Html_sigs.T to have a list of available functions to build HTML.

module type XML = Xml_sigs.T with type XML.uri = string and type XML.event_handler = Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.t -> bool and type XML.mouse_event_handler = Js_of_ocaml.Dom_html.mouseEvent Js_of_ocaml.Js.t -> bool and type XML.keyboard_event_handler = Js_of_ocaml.Dom_html.keyboardEvent Js_of_ocaml.Js.t -> bool and type XML.elt = Js_of_ocaml.Dom.node Js_of_ocaml.Js.t
module Xml : XML with module XML.W = Xml_wrap.NoWrap
module Svg : Svg_sigs.Make(Xml).T with module Svg.Xml.W = Xml_wrap.NoWrap
module Html : Html_sigs.Make(Xml)(Svg).T with module Html.Xml.W = Xml_wrap.NoWrap
module Html5 : Html_sigs.Make(Xml)(Svg).T with module Html5.Xml.W = Xml_wrap.NoWrap and type 'a Html5.elt = 'a Html.elt and type +'a Html5.attrib = 'a Html.attrib
module Register : sig ... end
module Wrap : Xml_wrap.T with type 'a Wrap.t = 'a React.signal and type 'a Wrap.tlist = 'a ReactiveData.RList.t and type ('a, 'b) Wrap.ft = 'a -> 'b
module Util : sig ... end
module R : sig ... end
module To_dom : Tyxml_cast_sigs.TO with type 'a elt = 'a Html.elt
module Of_dom : Tyxml_cast_sigs.OF with type 'a elt = 'a Html.elt