Apache2-WebApp-Toolkit
view release on metacpan or search on metacpan
--- #YAML:1.0
name: Apache2-WebApp-Toolkit
abstract: Simplified web application framework
version: 0.391
author:
- Marc S. Brooks <mbrooks@cpan.org>
license: perl
distribution_type: module
requires:
Apache2::Request: 0
AppConfig: 0
Template: 0
File::Copy::Recursive: 0
NAME
Apache2::WebApp - Simplified web application framework
SYNOPSIS
This module should not be used directly; it is intended to be run as a
*mod_perl* handler that can be configured as such by adding the
following directives to your "httpd.conf"
PerlRequire /path/to/project/bin/startup.pl
<Perl>
use Apache2::WebApp;
$Apache2::WebApp = Apache2::WebApp->new;
</Perl>
<Location /app>
SetHandler perl-script
PerlHandler $Apache2::WebApp->handler
SetEnv WEBAPP_CONF /path/to/project/conf/webapp.conf
</Location>
DESCRIPTION
The WebApp::Toolkit is a *mod_perl* web application framework for the
Perl programming language. It defines a set of methods, processes, and
conventions that help provide a consistent application environment.
The way this package works is actually pretty simple. For every HTTP
request, a *mod_perl* handler is executed that instanciates a new
"WebApp" controller object. This object is then passed to a "dispatch()"
method that parses the URI request and maps the result to a public
class/method while passing the %controller as the first argument.
Example:
=head1 NAME
Apache2::WebApp - Simplified web application framework
=head1 SYNOPSIS
This module should not be used directly; it is intended to be run as a I<mod_perl> handler
that can be configured as such by adding the following directives to your C<httpd.conf>
PerlRequire /path/to/project/bin/startup.pl
<Perl>
use Apache2::WebApp;
</Perl>
<Location /app>
SetHandler perl-script
PerlHandler $Apache2::WebApp->handler
SetEnv WEBAPP_CONF /path/to/project/conf/webapp.conf
</Location>
=head1 DESCRIPTION
The WebApp::Toolkit is a I<mod_perl> web application framework for the Perl programming
language. It defines a set of methods, processes, and conventions that help provide a
consistent application environment.
The way this package works is actually pretty simple. For every HTTP request, a I<mod_perl>
handler is executed that instanciates a new C<WebApp> controller object. This object is
then passed to a C<dispatch()> method that parses the URI request and maps the result to
a public class/method while passing the C<%controller> as the first argument.
Example:
lib/Apache2/WebApp.pm view on Meta::CPAN
#----------------------------------------------------------------------------+
#
# Apache2::WebApp - Simplified web application framework
#
# DESCRIPTION
# mod_perl request handler that provides URI to class/method dispatching.
#
# AUTHOR
# Marc S. Brooks <mbrooks@cpan.org>
#
# This module is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
#
lib/Apache2/WebApp.pm view on Meta::CPAN
my ($c, $mesg) = @_;
$c->request->log_error($mesg);
}
1;
__END__
=head1 NAME
Apache2::WebApp - Simplified web application framework - EOL (for reference only)
=head1 SYNOPSIS
This module should not be used directly; it is intended to be run as a I<mod_perl> handler
that can be configured as such by adding the following directives to your C<httpd.conf>
PerlRequire /path/to/project/bin/startup.pl
<Perl>
use Apache2::WebApp;
lib/Apache2/WebApp.pm view on Meta::CPAN
</Perl>
<Location /app>
SetHandler perl-script
PerlHandler $Apache2::WebApp->handler
SetEnv WEBAPP_CONF /path/to/project/conf/webapp.conf
</Location>
=head1 DESCRIPTION
The WebApp::Toolkit is a I<mod_perl> web application framework for the Perl programming
language. It defines a set of methods, processes, and conventions that help provide a
consistent application environment.
The way this package works is actually pretty simple. For every HTTP request, a I<mod_perl>
handler is executed that instanciates a new C<WebApp> controller object. This object is
then passed to a C<dispatch()> method that parses the URI request and maps the result to
a public class/method while passing the C<%controller> as the first argument.
Example:
( run in 0.647 second using v1.01-cache-2.11-cpan-df04353d9ac )