1Mojolicious::Plugin(3)User Contributed Perl DocumentationMojolicious::Plugin(3)
2
3
4
6 Mojolicious::Plugin - Plugin Base Class
7
9 use base 'Mojolicious::Plugin';
10
12 Mojolicous::Plugin is an abstract base class for Mojolicious plugins.
13 See Mojolicious::Plugins for more information.
14
16 Mojolicious::Plugin inherits all methods from Mojo::Base and implements
17 the following new ones.
18
19 "register"
20 $plugin->register;
21
22 This method will be called by Mojolicious::Plugins at startup time,
23 your plugin should use this to hook into the application. For instace
24 by adding handlers and helpers to the renderer or using the "add_hooks"
25 method of Mojolicious::Plugins to hook into the request flow.
26
28 Mojolicious, Mojolicious::Guides, <http://mojolicious.org>.
29
30
31
32perl v5.12.3 2010-08-12 Mojolicious::Plugin(3)