Subject: | Mojo::Loader->new() not found |
Date: | Wed, 8 Jul 2015 22:13:16 +0000 |
To: | <bug-Mojolicious-Command-generate-bootstrap_app [...] rt.cpan.org> |
From: | <Nicky.Ayoub [...] microchip.com> |
Hello,
I had issues using the module on a current version of mojolicious. The Mojo::Loader has been changed so the following failed:
sub render_base64_data {
my ($self, $name) = (shift, shift);
decode_base64(
Mojo::Template->new->name("template $name from DATA section")
->render(Mojo::Loader->new->data(ref $self, $name), @_)
);
}
I modified it like so:
use Mojo::Loader qw(data_section);
sub render_base64_data {
my ($self, $name) = (shift, shift);
decode_base64(data_section $name, @_);
}
That seemed to do the trick for me.
Regards,
Nicky
+--------------------------------------------------------+
Nick Ayoub : Microchip Technology : TEL 480-792-7275
CAD Sim : 2355 W. Chandler Blvd. :
: Chandler AZ 85224-6199 :
Nicky.Ayoub[@]Microchip.Com