class template :?filename:string -> string ->object..end
new template ?filename tpl computes a new template from the
string tpl. Once the object has been created, it can be used
in a single thread.
filename : if set, it is used to determine the base path for
::include():: tags in the template (default: current directory)
and to reuse the templates of already compiled files
(e.g. headers, footers,...).method set : string -> string -> unitSet a variable in the template.
method table : string -> table_row list -> unitSet a table in the template.
method conditional : string -> bool -> unitSet a conditional in the template.
method callback : string -> (string list -> string) -> unitSet a callback in the template.
method to_string : stringReturn the template as a string.
method to_channel : Stdlib.out_channel -> unitWrite the template to a channel.
method output : Netcgi.cgi -> unitoutput cgi outputs the template to the CGI session cgi.
method source : stringReturn the original source code for the template.