Mojolicious::Plugin - Plugin Base Class
use base 'Mojolicious::Plugin';
Mojolicous::Plugin is an abstract base class for Mojolicious plugins. See Mojolicious::Plugins for more information.
Mojolicious::Plugin inherits all methods from Mojo::Base and implements the following new ones.
register
$plugin->register;
This method will be called by Mojolicious::Plugins at startup time, your plugin should use this to hook into the application. For instace by adding handlers and helpers to the renderer or using the add_hooks method of Mojolicious::Plugins to hook into the request flow.
add_hooks
Mojolicious, Mojolicious::Guides, http://mojolicious.org.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.