Response Base - Base object for view plugins
use myResponse; my $response = myResponse->new($mungo); package myResponse; use base ("CGI::Mungo::Response::Base");
This object should not be used directly, a new class should be created which inherits this one instead.
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.
$response->setCacheable($seconds)
Sets the page to be cached for the specified amount of seconds.
In this package there are some responses already available for use:
See CGI::Mungo::Response::Raw for details.
See CGI::Mungo::Response::SimpleTemplate for details.
To install CGI::Mungo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Mungo
CPAN shell
perl -MCPAN -e shell install CGI::Mungo
For more information on module installation, please visit the detailed CPAN module installation guide.