sub BUILD {
my $plugin = shift;
my $app = $plugin->app;
$plugin->app->add_route(
method => 'get',
regexp => qr!/mypagel!,
code => \&myfuncl,
);
Then, in sub myfunc { I want to call to_json. Right now, I'm doing a use
JSON, and it works properly. Is there a way to call the serialozer from
the app like $app->to_json? What is recommended?
Thanks,
Jack
_______________________________________________ dancer-users mailing list [email protected] http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
