Mojolicious::Context(3p)

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"
    $c->render_inner;
    $c->render_inner(action => 'foo');

  "render_partial"
    $c->render_partial;
    $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');