Sebastian Riedel > Mojo > Mojolicious::Context

Download:
Mojo-0.9002.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

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');

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');