]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/Application.pm
Zero search fix and sweet new templates, wheee...
[maypole.git] / lib / Maypole / Application.pm
index b6789a835c229cf3db7f501ff5626570532d3bf9..4e8b624bf180303ada4ef2c7c2938c2473344f79 100644 (file)
@@ -7,35 +7,40 @@ our @ISA;
 
 sub import {
     my ( $self, @plugins ) = @_;
-     return unless $plugins[0];
-     my $caller=caller(0);
-     no strict 'refs';
-     push @{"${caller}::ISA"}, $self;    
-     "Maypole::$_"->require && unshift @ISA, "Maypole::$_" foreach (@plugins);
+    return unless $plugins[0];
+    my $caller = caller(0);
+    no strict 'refs';
+    push @{"${caller}::ISA"}, $self;
+    "Maypole::$_"->require && unshift @ISA, "Maypole::$_" foreach (@plugins);
 }
 
 if ( $ENV{MOD_PERL} ) {
     require Apache::MVC;
-    push @ISA , qw(Apache::MVC);
+    push @ISA, qw(Apache::MVC);
 }
 else {
     require CGI::Maypole;
-    push @ISA , qw(CGI::Maypole);
+    push @ISA, qw(CGI::Maypole);
 }
 
 1;
 
 =head1 NAME
 
-Maypole::Application - all in wonder front-end
+Maypole::Application - Maypole Universal Frontend
 
 =head1 SYNOPSIS
 
-    use base 'Maypole::Application';
+    use Maypole::Application;
 
 =head1 DESCRIPTION
 
-The all in wonder front-end.
+This is a universal frontend for mod_perl1, mod_perl2 and CGI.
+
+You can omit the Maypole:: prefix from plugins.
+So Maypole::Config::YAML becomes Config::YAML.
+
+    use Maypole::Application qw(Config::YAML);
 
 =head1 AUTHOR