1 package Maypole::Application;
9 my ( $self, @plugins ) = @_;
10 my $caller = caller(0);
12 push @{"${caller}::ISA"}, $self;
13 "Maypole::$_"->require && unshift @ISA, "Maypole::$_" foreach (@plugins);
16 if ( $ENV{MOD_PERL} ) {
18 push @ISA, qw(Apache::MVC);
22 push @ISA, qw(CGI::Maypole);
29 Maypole::Application - Maypole Universal Frontend
33 use Maypole::Application;
37 This is a universal frontend for mod_perl1, mod_perl2 and CGI.
39 You can omit the Maypole:: prefix from plugins.
40 So Maypole::Config::YAML becomes Config::YAML.
42 use Maypole::Application qw(Config::YAML);
46 Sebastian Riedel, C<sri@oook.de>
47 Idea by Marcus Ramberg, C<marcus@thefeed.no>
51 You may distribute this code under the same terms as Perl itself.