Mojolicious::Plugin::TtRenderer - Template Renderer Plugin
# Mojolicious $self->plugin('tt_renderer'); $self->plugin(tt_renderer => {template_options => {FILTERS => [ ... ]}}); # Mojolicious::Lite plugin 'tt_renderer'; plugin tt_renderer => {template_options => {FILTERS => [ ... ]}};
Mojolicous::Plugin::TtRenderer is a simple loader for MojoX::Renderer::TT.
Mojolicious::Plugin::TtRenderer inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register renderer in Mojolicious application.
The current controller instance can be accessed as c.
c
[% c.req.headers.host %]
Mojolicious::Plugin::TtRenderer::Engine, Mojolicious, Mojolicious::Guides, http://mojolicious.org.
To install Mojolicious::Plugin::TtRenderer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::TtRenderer
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::TtRenderer
For more information on module installation, please visit the detailed CPAN module installation guide.