package Mojolicious::Plugin::TtRenderer; use strict; use warnings; use v5.10; # ABSTRACT: Template Renderer Plugin for Mojolicious # VERSION use base 'Mojolicious::Plugin'; use Mojolicious::Plugin::TtRenderer::Engine; sub register { my ($self, $app, $args) = @_; $args ||= {}; my $tt = Mojolicious::Plugin::TtRenderer::Engine->build(%$args, app => $app); # Add "tt" handler $app->renderer->add_handler(tt => $tt); } $Mojolicious::Plugin::TtRenderer::VERSION //= ('devel'); 1; __END__ =encoding utf-8 =begin stopwords Bjørn Szász Árpád =end stopwords =head1 SYNOPSIS L: plugin 'tt_renderer'; L $self->plugin('tt_renderer'); =head1 DESCRIPTION This plugin is a simple Template Toolkit renderer for L. Its defaults are usually reasonable, although for finer grain detail in configuration you may want to use L directly. =head1 OPTIONS These are the options that can be passed in as arguments to this plugin. =head2 template_options Configuration hash passed into L