Mojolicious::Plugin::Kavorka - Signature sugar for your Mojolicious controller actions
use Mojolicious::Lite; use Kavorka; plugin 'Kavorka'; get '/:name' => method ($name) { $self->render("Hello $name!"); } app->start;
Kavorka lets you define methods with introspectable signatures. Using that extra knowledge can make your controller methods clearer and friendlier. Mojolicious::Plugin::Kavorka sits in your dispatch layer and if a target controller method (action) was declared with Kavorka it will extract stash variables of the same name and pass them to the method.
This plugin is a very rough release, I'm not sure what functionality should be added nor what semantics it should have. Consider it very experimental. That said, this is a rich testbed for future functionality; if you have ideas or suggestions, please let me know!
http://github.com/jberger/Mojolicious-Plugin-Kavorka
Joel Berger, <joel.a.berger@gmail.com>
Copyright (C) 2015 by Joel Berger
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Mojolicious::Plugin::Kavorka, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Kavorka
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Kavorka
For more information on module installation, please visit the detailed CPAN module installation guide.