
MojoX::Dispatcher::Routes::Controller - Controller Base Class

use base 'MojoX::Dispatcher::Routes::Controller';

MojoX::Dispatcher::Routes::Controller is a controller base class.

MojoX::Dispatcher::Routes::Controller implements the following attributes.
app my $app = $c->app;
$c = $c->app(MojoSubclass->new);
matchmy $match = $c->match;
txmy $tx = $c->tx;

MojoX::Dispatcher::Routes::Controller inherits all methods from Mojo::Base and implements the following new ones.
render$c->render;
reqmy $req = $c->req;
resmy $res = $c->res;
stash my $stash = $c->stash;
my $foo = $c->stash('foo');
$c = $c->stash({foo => 'bar'});
$c = $c->stash(foo => 'bar');
$c->stash->{foo} = 'bar';
my $foo = $c->stash->{foo};
delete $c->stash->{foo};