Statocles::Plugin - Base role for Statocles plugins
version 0.062
# lib/My/Plugin.pm package My::Plugin; use Moo; # or Moose with 'Statocles::Plugin'; sub register { my ( $self, $site ) = @_; # Register things like event handlers and theme helpers } 1; # site.yml site: args: plugins: name: $class: My::Plugin
Statocles Plugins are attached to sites and add features such as template helpers and event handlers.
This is the base role that all plugins should consume.
$plugin->register( $site );
Register this plugin with the given Statocles::Site object. This is called automatically when the site is created.
These plugins come with Statocles. More plugins may be available from CPAN.
Syntax highlighting for code and configuration
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2015 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Statocles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statocles
CPAN shell
perl -MCPAN -e shell install Statocles
For more information on module installation, please visit the detailed CPAN module installation guide.