The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Raisin::Plugin - Base class for Raisin plugins.

SYNOPSIS

package Raisin::Plugin::Hello;
use base '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!' });