NAME

Acme::Crux::Plugin - The Acme::Crux plugin base class

SYNOPSIS

package Acme::Crux::Plugin::MyPlugin;
use parent 'Acme::Crux::Plugin';
sub register {
   my ($self, $app, $args) = @_;
   # ... your code here ...
}

# In your appliction:
$app->plugin( myplugin => 'Acme::Crux::Plugin::MyPlugin' );

DESCRIPTION

The Acme::Crux plugin abstract base class

new

my $plugin = Acme::Crux::Plugin->new( 'myplugin' );

METHODS

This class implements the following methods

name

my $name = $plugin->name;

Tgis method returns name of this plugin

register

$plugin->register( $app, $plugin_args );
$plugin->register( $app, @$plugin_args );

This method will be called at startup time. You should overload it in your subclass

TO DO

See TODO file

SEE ALSO

CTK::Plugin, Mojolicious::Plugin

AUTHOR

Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2024 D&D Corporation. All Rights Reserved

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See LICENSE file and https://dev.perl.org/licenses/