The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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