NAME

Mojolicious::Renderer - Renderer

SYNOPSIS

    use Mojolicious::Renderer;

    my $renderer = Mojolicious::Renderer->new;

DESCRIPTION

Mojolicous::Renderer is the default Mojolicious renderer.

ATTRIBUTES

Mojolicious::Renderer inherits all attributes from MojoX::Renderer and implements the following new ones.

helper

    my $helper = $renderer->helper;
    $renderer  = $renderer->helper({url_for => sub { ... }});

METHODS

Mojolicious::Renderer inherits all methods from MojoX::Renderer and implements the following new ones.

new

    my $renderer = Mojolicious::Renderer->new;

add_helper

    $renderer = $renderer->add_helper(url_for => sub { ... });