Skip to content

jberger/Mojolicious-Plugin-Kavorka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Mojolicious::Plugin::Kavorka - Signature sugar for your Mojolicious controller actions

SYNOPSIS

use Mojolicious::Lite;
use Kavorka;

plugin 'Kavorka';

get '/:name' => method ($name) {
  $self->render("Hello $name!");
}

app->start;

DESCRIPTION

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!

SEE ALSO

Kavorka
Moops

SOURCE REPOSITORY

http://github.com/jberger/Mojolicious-Plugin-Kavorka

AUTHOR

Joel Berger, <joel.a.berger@gmail.com>

COPYRIGHT AND LICENSE

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.

About

Signature sugar for your Mojolicious controller actions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages