NAME
Statocles::Plugin - Base role for Statocles plugins
VERSION
version 0.067
SYNOPSIS
# 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
DESCRIPTION
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.
METHODS
register
$plugin->register( $site );
Register this plugin with the given Statocles::Site object. This is called automatically when the site is created.
BUNDLED PLUGINS
These plugins come with Statocles. More plugins may be available from CPAN.
- Statocles::Plugin::LinkCheck
-
Check your site for broken links and images.
- Statocles::Plugin::Highlight
-
Syntax highlighting for code and configuration.
- Statocles::Plugin::HTMLLint
-
Check your HTML for best practices.
AUTHOR
Doug Bell <preaction@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 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.