Apache-ContentHandler
view release on metacpan or search on metacpan
ContentHandler.pm view on Meta::CPAN
$self->{default_action} = 'hello';
# other variable definitions
}
sub hello {
return '<P>Hello World</P>';
}
=head1 DESCRIPTION
Apache::ContentHandler is a generic framework for creating mod_perl
based applications. It provides a basic event mechanism and a
subclassable framework for customizing actions.
The synopsis shows a very simple example of what it can do. In this
case, we set the default_action to 'hello', which is automatically
executed. Hello in this case outputs a simple paragraph. Nothing big,
but it is very simple. Note that this app runs as-is in both CGI and
mod_perl.
=head2 Rapid Prototyping
This does not demonstrate the real power of ContentHandler. The real
( run in 1.355 second using v1.01-cache-2.11-cpan-df04353d9ac )