Add plugin namespace

By default, plugins are loaded from under Mojolicious::Plugin , but you can add namespaces as well.

#Mojolicious::Lite
push @{app->plugins->namespaces},'MyApp::Plugins';

#Mojolicious
sub startup {
   my $self = shift;

   push @{$self->plugins->namespaces},'MyApp::Plugins';
}

Associated Information