NAME
Raisin::Plugin - Base class for Raisin plugins.
SYNOPSIS
package Raisin::Plugin::Hello;
use parent 'Raisin::Plugin';
sub build {
my ($self, %args) = @_;
$self->register(hello => sub { print 'Hello!' });
}
DESCRIPTION
Provides the base class for creating Raisin plugins.
METHODS
build
Main method for each plugin.
register
Registers one or many methods into the application.
$self->register(hello => sub { print 'Hello!' });