Go to the first, previous, next, last section, table of contents.


The Html module

exception Bad_html
type html

type of HTML pages

type params = Tagtypes.param list

type of attributes for HTML tags

val new_html : unit -> html

create an empty HTML page

val ( <<< ) : html -> (html -> html) -> html

adds HTML fragment to a page, returning the updated page

val ( << ) : (html -> html) -> (html -> html) -> html -> html

appends two HTML fragments

val null : html -> html

an empty HTML fragment

val concat : (html -> html) list -> html -> html

concatenates a list of HTML fragments

val lift : string -> html -> html

convert a string into a HTML fragment

val liftnl : string -> html -> html

convert a string into a HTML fragment with a trailing \n appended

val as_string : html -> string

return the html page as a string

val print : html -> unit

print the html page on std out

val output : out_channel -> html -> unit

ouput the html page to out_channel

val nl : html -> html

a newline

val sp : html -> html

a space

val no_arguments : unit -> bool

has the script been called with any arguments


Go to the first, previous, next, last section, table of contents.