package printbox-html

  1. Overview
  2. Docs
On This Page
  1. Output HTML
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module PrintBox_htmlSource

Output HTML

Sourcetype 'a html = 'a Tyxml.Html.elt
Sourcetype toplevel_html = Html_types.li_content_fun html
Sourcetype PrintBox.ext +=
  1. | Embed_html of toplevel_html
    (*

    Injects HTML into a box. It is handled natively by PrintBox_html. NOTE: this extension is unlikely to be supported by other backends!

    *)
Sourceval embed_html : toplevel_html -> PrintBox.t

Injects HTML into a box. NOTE: this is unlikely to be supported by other backends!

Sourceval prelude : [> Html_types.style ] html

HTML text to embed in the "<head>", defining the style for tables

Sourceval prelude_str : string
Sourcemodule Config : sig ... end
Sourceval register_extension : key:string -> (Config.t -> PrintBox.ext -> toplevel_html) -> unit

Add support for the extension with the given key to this rendering backend.

Sourceval to_html : ?config:Config.t -> PrintBox.t -> [ `Div ] html

HTML for one box

Sourceval pp : ?flush:bool -> ?config:Config.t -> ?indent:bool -> unit -> Format.formatter -> PrintBox.t -> unit
Sourceval to_string : ?config:Config.t -> PrintBox.t -> string
Sourceval to_string_indent : ?config:Config.t -> PrintBox.t -> string
Sourceval to_string_doc : ?config:Config.t -> PrintBox.t -> string

Same as to_string, but adds the prelude and some footer