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.

METHODS

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

render

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

render_inner

my $output = $c->render_inner;

render_partial

my $output = $c->render_partial;
my $output = $c->render_partial(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');