Subject: | POD for Mojolicious::Plugin::ToolkitRenderer |
Date: | Thu, 31 Jul 2014 11:27:24 +0100 |
To: | bug-Mojolicious-Plugin-ToolkitRenderer [...] rt.cpan.org |
From: | Gareth Harper <gareth.harper [...] broadbean.com> |
In the section titled "SETUP" if you copy and paste the exact code before (assuming that it'll default sensibly), then it will die with "Not a CODE reference at ..." error.
This section below:
=head1 SETUP
When setting up the plugin, you need to provide a hashref of settings that
are in 3 sections.
{
config => {},
settings => {},
context => {},
}
Needs to become:
=head1 SETUP
When setting up the plugin, you need to provide a hashref of settings that
are in 3 sections.
{
config => {},
settings => {},
context => sub {},
}
The other option is to simpyl explicitly state that all three are optional, and you do not need to provide them if you do not need them.
Thanks
Gareth