MacGyveR > CGI-Mungo-1.701 > CGI::Mungo::Response::Base

Download:
Mungo/CGI-Mungo-1.701.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: CGI-Mungo-1.9

NAME ^

Response Base - Base object for view plugins

SYNOPSIS ^

        use myResponse;
        my $response = myResponse->new($mungo);
        
        package myResponse;
        use base ("CGI::Mungo::Response::Base");

DESCRIPTION ^

This object should not be used directly, a new class should be created which inherits this one istead.

All response plugins should override at least the display() method and they all a sub class of HTTP::Response.

The module CGI::Mungo::Response will load the specified response plugin on script startup.

METHODS ^

setCacheable($seconds)

        $response->setCacheable($seconds)

Sets the page to be cached for the specified amount of seconds.

Provided classes ^

In this package there are some responses already available for use:

Raw

See CGI::Mungo::Response::Raw for details.

SimpleTemplate

See CGI::Mungo::Response::SimpleTemplate for details.

syntax highlighting: