module Tyxml_svg:sig
..end
Typesafe constructors and printers for Svg documents.
include Svg_sigs.Make(Tyxml_xml).T
Concrete implementation of Svg typesafe constructors.
See Svg_sigs.T
.
val pp : ?encode:(string -> string) ->
?indent:bool ->
?advert:string -> unit -> Stdlib.Format.formatter -> doc -> unit
pp ()
is a Format
printer for Svg documents.
It can be used in combination with "%a"
. For example, to get a string:
let s = Format.asprintf "%a" (Tyxml.Svg.pp ()) my_svg
val pp_elt : ?encode:(string -> string) ->
?indent:bool -> unit -> Stdlib.Format.formatter -> 'a elt -> unit
pp_elt ()
is a Format
printer for Svg elements.
module Make_printer(
O
:
Xml_sigs.Output
)
:Xml_sigs.Typed_printer
with type out := O.out and type 'a elt := 'a elt and type doc := doc
Parametrized stream printer for Svg documents.