Index of values


A
apply_opt [Misc]
arg [Args]
Same as Args.int_arg but the conversion function is a parameter.
arg_of_callback [Model.FCgi_session_cookies]
Take a page name and build the code to append to an url to go to this callback.
arg_of_callback [Model.FCgi_session_params]
Take a page name and build the code to append to an url to go to this callback.
arg_of_session_id [Model.FCgi_session_params]
Take a session id and returns the code to append to an url to use the same session id for the page at this url.

B
b [Html]
br [Html]
break_string [Misc]
Break a string into words.

C
callback_varname [Model.Session_model]
the variable name to use for the page in urls, with only the following characters: a-z A-Z 0-9 '-' '_'
callback_varname [Model.Cgi_model]
check_mail [Args]
Check that the given mail string is a valid email address (has '@' and something on each side).
col [Html]
concat [Html]
content_type [Hooks]
The content type to return in the cgi response header.
cookie_register [Model.FCgi_session_cookies]
Register a cookie_callback.
cookie_register [Model.FCgi_session_params]
Register a cookie_callback.
cookie_register [Model.Cgi]
cookie_register [Model.FCgi]
css_code [Html]
Return the css code to use for the given css names, for the complex documents to look ok.
css_names [Html]
Return the current css names.
css_style [Hooks]
The style url to use in default pages.

D
decode_string [Encoding]
div [Html]
double_list_in_table [Html]
double_list_in_table [((title, span), (f, l)); ...] builds a html string representing a list of lists, using HTML tables.

E
encode_string [Encoding]
error_page [Hooks]
The page displayed for errors.
escape_entities [Misc]
Replace '<', '>' and '&' characters by their HTML code ("&lt;", "&gt;", "&amp;").
escape_quotes [Misc]
Replace the quotes in a string by "&#34;"
exception_page [Hooks]
The page displayed for uncaught exceptions.

F
failure_handler [Model.Session_model]
To return a document from an error message, when a callback raises the Failure exception.
fatal_error [Hooks]
The "fatal error" message.
float_arg [Args]
Same as Args.int_arg but for floats.
form [Html]
form ?method action body creates a form with the given method (default is Post) and action, containing the given body.
frame_table [Html]
frame_table rows builds a html string with the given rows in a table, using two tables to create a nice border.

G
get_cgi_env [Env]
Collect cgi arguments and return them in a cgi_env value, setting up the query string, according to the method of the cgi.
get_user [Model.Session_model]
to get user information from the session id and the environment.

H
h1 [Html]
h2 [Html]
h3 [Html]
h4 [Html]
h5 [Html]
h6 [Html]
hex_char_of_int [Encoding]
html_answer [Model]
html_answer (html, cookie_actions) returns the string for a correct cgi output, with the given HTML code and optional cookie actions.
html_answer_f [Model]
html_answer_f f (html, cookie_actions) returns the string for a correct cgi output, apply f to html to get the string from the html code, whatever html really is.

I
i [Html]
input [Html]
input typ ?value varname creates a form field with given typ, using the given variable name varname, eventually adding a value for the value attribute if specified.
int_arg [Args]
int_arg env ~err: "message" arg_name
int_of_hex_char [Encoding]

J
justify_string_for_html [Html]
justify_text_area [Html]

L
link [Html]
link url html creates a html string representing a link in the form <a href="url">html</a>.
list_in_table [Html]
list_in_table cols l builds a html string representing a list l, using HTML tables.

M
mail_arg [Args]
Same as Args.int_arg but for email addresses.
main [Model.FCgi_session_cookies]
USe the required callback (according to the value of the variable for the callback in the url.
main [Model.FCgi_session_params]
Use the required callback (according to the value of the variable for the callback) in the url.
main [Model.Cgi]
main [Model.FCgi]
mandatory [Args]
mandatory env ~err: error_message arg_name returns the value associated to the given arg_name in the CGI environment env.
mandatory_cookie [Args]
mandatory_cookie env ~err: error_message arg_name returns the value associated to the given arg_name in the cookies of the CGI environment env.
more_head [Hooks]
Some HTML code to add in default pages headers.

N
no_blanks [Misc]
no_blanks s return the given string without any blank characters, i.e.

O
ol [Html]
ol_li [Html]
opt_of_string [Misc]
optional [Args]
optional env arg_name returns the optional value of arg_name in the given environment.
optional_cookie [Args]
optional_cookie env arg_name returns the optional value of arg_name in the cookies of the given environment.
optional_f [Args]
optional_f env f arg_name returns the optional application of f to the value of arg_name in the given environment.
optional_f_cookie [Args]
optional_f_cokie env f arg_name returns the optional application of f to the value of arg_name in the cookies of the given environment.

P
p [Html]
page [Html]
page title body creates a html string representing a HTML page, with the given title and body.
parse [Args]
Example of an element of the list: "id", Int (fun n -> id := n), [Mandatory "The id parameter is missing!"]
pre [Html]

R
raw_mandatory [Args]
raw_mandatory env ~err: error_message arg_name returns the Env.argument_value associated to the given arg_name in the CGI environment env.
raw_optional [Args]
raw_optional env arg_name returns the optional Env.argument_value of arg_name in the given environment.
register [Model.FCgi_session_cookies]
Register a callback.
register [Model.FCgi_session_params]
Register a callback.
register [Model.Cgi]
register [Model.FCgi]
reset_button [Html]
reset_button label create a form reset button with the given label for the button.

S
select [Html]
select name choices default creates a select tag, to create a HTML combo in a form.
sendmail [Mail]
sendmail host port mail send the given mail through the given SMTP server.
seq [Html]
session_id [Model.FCgi_session_cookies]
Get the session id, if the user is connected.
session_id [Model.FCgi_session_params]
Get the session id, if the user is connected.
session_id_of_string [Model.Session_model]
session_varname [Model.Session_model]
the variable name to use for the session id in urls, with only the following characters: a-z A-Z 0-9 '-' '_'
set_css_names [Html]
Change the current css names.
simplify_opt [Misc]
span [Html]
string_arg [Args]
Same as Args.int_arg but for strings.
string_for_html [Html]
string_of_cgi_args [Env]
Map cgi arguments to a string.
string_of_html [Model.Session_model]
ou bien un print_html : fmt -> html -> unit
string_of_html [Model.Cgi_model]
string_of_opt [Misc]
string_of_session_id [Model.Session_model]
submit_button [Html]
submit_button label create a form submit button with the given label for the button.

T
table [Html]
table_100 [Html]
tag [Html]
tag t ~atts: [(attribute1, value1) ; (attribute2, value2) ; ...] html creates a html string where the given html is encapsultated in a new tag t, with the given attributes, in the form <t attribute1="value1" attribute2="value2" ...>html</t>.
td [Html]
text_area [Html]
textarea [Html]
textarea ~value name creates a textarea tag, to create a HTML text area input field in a form.
tr [Html]
tree [Html]
tree l f_html f_children creates a html string representing trees.
tree_in_table [Html]
Same as Html.tree but put the tree in a table.

U
ul [Html]
ul_li [Html]