The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Yancy::Plugin::Test;

=head1 DESCRIPTION

This is a test plugin to ensure Yancy looks up plugins and gives them
their arguments correctly.

=cut

use Mojo::Base 'Mojolicious::Plugin';

sub register {
    my ( $self, $app, @args ) = @_;
    $app->routes->get( '/test' )->to( cb => sub {
        my ( $c ) = @_;
        return $c->render( json => \@args );
    } );
}

1;