Starch::Plugin::ForManager - Base role for Starch plugins.
package MyPlugin::Manager; use Moo; with 'Starch::Plugin::ForManager'; has foo => ( is=>'ro' ); my $starch = Starch->new( plugins => ['MyPlugin::Manager'], foo => 'bar', ..., ); print $starch->foo(); # bar
This role provides no additional functionality to manager plugins. All it does is labels a plugin as a manager plugin so that Starch knows which class type it applies to.
See "PLUGINS" in Starch::Extending for more information.
See "AUTHOR" in Starch, "CONTRIBUTORS" in Starch, and "LICENSE" in Starch.
To install Starch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Starch
CPAN shell
perl -MCPAN -e shell install Starch
For more information on module installation, please visit the detailed CPAN module installation guide.