Library
Module
Module type
Parameter
Class
Class type
HTML generation.
val empty : 'a seq
An empty sequence.
el e ~atts c
is an element e
with attribute atts
and content c
.
buffer_add ~doc_type b h
adds the sequence h
to b
. If doc_type
is true
(default) an HTML doctype declaration is prepended.
to_string
is like buffer_add
but returns directly a string.
val output : ?doc_type:bool -> Pervasives.out_channel -> t seq -> unit
output
is like buffer_add
but outputs directly on a channel.