|
|
|
NAME
http_htmldoc_answer()
LIBRARY
Caudiumlib.
SYNOPSIS inherit "caudiumlib"; mapping http_htmldoc_answer(string contents, string title, void|mapping meta, void|string|mapping style, void|string dtype); DESCRIPTION
Return a response mapping with the content wrapped up to form
a valid HTML document. The document is always of the text/html
type and you can modify its look using CSS and add any meta tags you
find necessary. It is also specify one of the predifined document
type. The generated document is always identified as one following
the HTML 4.01 standard.
string contents
The document body.
string title
The document title.
void|mapping meta
A mapping of meta entries. Each indexs in the mapping is also a
mapping and describe a single <meta> tag. The indices in the
inner mapping are the attribut names and their values constitutes the
attribute value. If both 'name' and 'http_equiv'
incides exist in the inner mapping, 'http_equiv' is used
(to generate the http-equiv) meta attribute. It is your
responsability to specify attributes that are valid for the meta tag.
void|string|mapping style
Modifies the document style. Contents of this mapping is converted to
the style container put in the document head section. Every index in the
mapping is considered to be classifier and its value the style
assigned to the given classifier. The style is put between curly
braces. If this parameter is a string, then instead of generating the
inline style, the function will create a link to the specified
URI given in this parameter.
void|string dtype
Specifies the name of the document type definition. The following
names are known: 'transitional' (the default), 'strict',
'frameset'.
RETURNS
The HTTP response mapping.
|
|
Copyright © 2000 - 2005
The Caudium Group
All Rights Reserved. Hosting by Kazar.
|
|