package eliom

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

"Polyglot" HTML printer. See <<a_api project="tyxml" | module Xml_sigs.Typed_pp >> .

val pp_elt : ?encode:(string -> string) -> ?indent:bool -> unit -> Stdlib.Format.formatter -> 'a elt -> unit

pp_elt () is a Format printer for individual elements.

A custom encoding function can be provided with the ~encode argument. Various implementations of encode are available in Xml_print.

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

pp () is a Format printer for complete documents.

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

let s = Format.asprintf "%a" (pp ()) my_document

A custom encoding function can be provided with the ~encode argument. Various implementations of encode are available in Xml_print.