NAME

Mojolicious::Context - Context

SYNOPSIS

use Mojolicious::Context;

my $c = Mojolicious::Context->new;

DESCRIPTION

Mojolicous::Context is a context container.

ATTRIBUTES

Mojolicious::Context inherits all attributes from MojoX::Dispatcher::Routes::Context and implements the following new ones.

app

my $app = $c->app;

stash

my $stash = $c->stash;

METHODS

Mojolicious::Context inherits all methods from MojoX::Dispatcher::Routes::Context and implements the following new ones.

render

$c->render;
$c->render(action => 'foo');

url_for

my $url = $c->url_for;
my $url = $c->url_for(controller => 'bar', action => 'baz');
my $url = $c->url_for('named', controller => 'bar', action => 'baz');