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

Module Tyxml.Html5

module Html5 : Tyxml_html

Deprecated"Use Html" Deprecated alias for Tyxml.Html.


include Html_sigs.Make(Tyxml_xml)(Tyxml_svg).T

Concrete implementation of Html typesafe constructors. See module-type:Html_sigs.T.

Printers

val pp : 
  ?encode:(string -> string) ->
  ?indent:bool ->
  ?advert:string -> unit -> Stdlib.Format.formatter -> doc -> unit

pp () is a Format printer for Html documents.

It can be used in combination with "%a". For example, to get a string:

let s = Format.asprintf "%a" (Tyxml.Html.pp ()) my_html
val pp_elt : 
  ?encode:(string -> string) ->
  ?indent:bool -> unit -> Stdlib.Format.formatter -> 'a elt -> unit

pp_elt () is a Format printer for Html elements.

module Make_printer (O : Xml_sigs.Output) : 
  
  Xml_sigs.Typed_printerwith type out := O.out
and type 'a elt := 'a elt
and type doc := doc

Parametrized stream printer for Html documents.

/

Toplevel printers

val _pp : Stdlib.Format.formatter -> doc -> unit
val _pp_elt : Stdlib.Format.formatter -> 'a elt -> unit