package GT
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=15924a175fcaaa57286853e8129159a0ce207f31b33f83d7f8aa436da1e17519
sha512=03d32a6b745b2ae04f4cd434b13c614acd66dfa7cb90c748c951b92bf517a9de7cc870f49bf31d94112f4b6efc019b1258d47b0177adfb664b1f22ff2375ae91
doc/GT.HTML/HTML/index.html
Module HTML
Viewing values of various types in HTML format.
Combinatorial interface
type er = View.er
Type synonym for viewer function to be referenced as HTMLView.er
.
type viewer = er
Type synonym to be referenced unqualified.
val toHTML : viewer -> string
String conversion.
val string : string -> viewer
Escaped string.
val raw : string -> viewer
Raw string.
Viewer constructors for build-in types
val unit : unit -> viewer
unit
viewer.
val int : int -> viewer
int
viewer.
val float : float -> viewer
float
viewer.
val bool : bool -> viewer
bool
viewer.
val char : char -> viewer
char
viewer.
Sequence constructors
Some predefined HTML-specific viewers
val br : viewer
Break viewer.
Tagged viewer: tag name p
surrounds p
with open and close tags with name name
. Optional argument attrs
can be given to provide attributes for the tag (for example, tag "table" ~attrs:"align=center" p
).
Some conventional HTML tags. Optional argument attrs
provides HTML tag attributes
Some conventional HTML inputs. Optional argument attrs
provides HTML tag attributes
val link : string -> viewer
Multi-page wizard generator
module Wizard : sig ... end
Helper module to provide anchors to values
Functor anchor takes one argument which describes type for which values anchors are set and name to distinguish namespaces (if any).
Functorial interface
module type Element = sig ... end
An abstract element to generate HTML from.
Functor to provide list to HTML generation.
Functor to provide array to HTML generation.
Functor to provide set to HTML generation. Set items are ordered in according to their <b>string representations</b>.
module Map
(M : Map.S)
(K : Element with type t = M.key)
(V : Element) :
Element with type t = V.t M.t
Functor to provide map to HTML generation. Set items are ordered in according to their <b>string representations</b>.
module Hashtbl
(M : Hashtbl.S)
(K : Element with type t = M.key)
(V : Element) :
Element with type t = V.t M.t
Functor to provide hash table to HTML generation. Set items are ordered in according to their <b>string representations</b>.
Functor to provide named pair to HTML generation. The first parameter sets component names.
Functor to provide unnamed pair to HTML generation.
module String : sig ... end
Module to provide string to HTML generation.