Ask Bjørn Hansen > Mojolicious-Plugin-TtRenderer-1.21 > Mojolicious::Plugin::TtRenderer

Download:
Mojolicious-Plugin-TtRenderer-1.21.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.21   Source   Latest Release: Mojolicious-Plugin-TtRenderer-1.53

NAME ^

Mojolicious::Plugin::TtRenderer - Template Renderer Plugin

SYNOPSIS ^

    # Mojolicious
    $self->plugin('tt_renderer');
    $self->plugin(tt_renderer => {template_options => {FILTERS => [ ... ]}});

    # Mojolicious::Lite
    plugin 'tt_renderer';
    plugin tt_renderer => {template_options => {FILTERS => [ ... ]}};

DESCRIPTION ^

Mojolicous::Plugin::TtRenderer is a simple loader for MojoX::Renderer::TT.

METHODS ^

Mojolicious::Plugin::TtRenderer inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

    $plugin->register;

Register renderer in Mojolicious application.

EXTRA STASH VARIABLES ^

The current controller instance can be accessed as c.

   [% c.req.headers.host %]

SEE ALSO ^

Mojolicious::Plugin::TtRenderer::Engine, Mojolicious, Mojolicious::Guides, http://mojolicious.org.

syntax highlighting: