package GT
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=fe0aa1e40afd36f7c1fcd992c408261d0b5645cea080ea98bc5dbf0b8682187f
sha512=8db0f2d8db4d7c11cf55835ba2b6c4f5ee1e8c09a4bdc2a9c57d50958ff8654688d4c8596079dfd1027d8b9e878f6e1b0d14341bcdf5f63cf96a45b2a571f3cb
doc/GT.HTML/HTML/index.html
Module HTML
Viewing values of various types in HTML format.
Combinatorial interface
type er = View.erType synonym for viewer function to be referenced as HTMLView.er.
type viewer = erType synonym to be referenced unqualified.
val toHTML : viewer -> stringString conversion.
val string : string -> viewerEscaped string.
val raw : string -> viewerRaw string.
Viewer constructors for build-in types
val unit : unit -> viewerunit viewer.
val int : int -> viewerint viewer.
val float : float -> viewerfloat viewer.
val bool : bool -> viewerbool viewer.
val char : char -> viewerchar viewer.
Sequence constructors
Some predefined HTML-specific viewers
val br : viewerBreak 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 -> viewerMulti-page wizard generator
module Wizard : sig ... endHelper 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 ... endAn 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.tFunctor 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.tFunctor 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 ... endModule to provide string to HTML generation.