About this module
This modules provides the necessary functions to define and export resources, such as images,web pages, error pages, etc. as well as customizing pages for display on platforms with specific
needs (e.g. PDAs, iPhone, etc.)
Where do I start?
To create a web page, use function Resource.page or its shortcut html. To create an image,use function Resource.image. OPA will handle the details.
What if I need more?
To add new kinds of resources, such as videos or mp3, use Resource.binary or its cousinResource.source. To customize pages, use Resource.full_page.-
{void
volatile}
-
or
-
or
-
or
{void
permanent}
| Name | Summary |
|---|---|
|
Complete given parser by adding automatic handling of files contained on given map
|
|
|
Build a resource from some binary content.e.g. to embed statically a mp3, use .
|
|
|
Build a css from some content.
|
|
|
Build a dynamic resource from the name of the file and its type. Same as
but with status set to
|
|
|
Build a dynamic resource from the name of the file, its type and its status.
|
|
|
Build the default web page for displaying an error.Note that this page is rather ugly. You should ra...
|
|
|
Build the default web page for redirecting the user to another address.Note that this page is rather...
|
|
|
Create a resource which is recomputed at each time it is served.
|
|
|
Convert a dynamic resource to a resource
|
|
|
Build a web page for displaying an error.See also if you don't care about the appearance of the err...
|
|
|
Build a web page.This function is a more powerful variant on .
|
|
|
An alias for
|
|
|
Build an image from some content.
|
|
|
A standard customizer to add an icon and a start-up image for applications running on iPhone OS.
|
|
|
Build some pure text content.
|
|
|
Build a delegated result : this value makes the server does not give back anything to the client
thi...
|
|
|
Override the mime type of a resourceNote: This is an unsafe operation, as some browsers base their s...
|
|
|
Build a web page.This function is sufficient for most uses. If you need to more control on the page,...
|
|
|
Build a resource from some raw content.
Note: If you put status to , this is equivalent to .e.g. to ...
|
|
|
Build a resource containing only a status (empty content)e.g. to send a 409, use .
|
|
|
Build some pure text content.
|
|
|
Build a redirection page.See also if you don't care about the appearance of the redirection page.
|
|
|
Set the default doctype of html pages.
|
|
|
Adds an external css file (identified by its url) to the default_customizers of ALL resources.
Will ...
|
|
|
Adds an favicon link to the default_customizers of ALL resources.
Will be appended in the headers of...
|
|
|
Adds an external javascript file (identified by its url) to the default_customizers of ALL resources...
|
|
|
* Construct a SOAP resource.
*
* @param soap A response defined in XML. As per SOAP definition, ...
|
|
|
Build a resource from some ascii content.e.g. to embed statically a source code, use .
|
|
|
Change the status of a resource
|
|
|
Build a web page, adding a set of stylesheets.This function is sufficient for most uses. If you need...
|
|
|
Removes an external css file (identified by its url) to the default_customizers of ALL resources if ...
|
|
|
Removes an external javascript file (identified by its url) to the default_customizers of ALL resour...
|
|
|
Update a dynamic resource if it changed
|
|
|
Update a dynamic resource status if it changed
|
|
|
Build some xmlns content
|
Comments