Why not adopt me?
NAME
Module::Starter::Plugin::TT2 - TT2 templates for Module::Starter::Template
SYNOPSIS
use Module::Starter qw(
Module::Starter::Simple
Module::Starter::Plugin::Template
Module::Starter::Plugin::TT2
...
);
Module::Starter->create_distro( ... );
DESCRIPTION
This Module::Starter plugin is intended to be loaded after Module::Starter::Plugin::Template. It implements the renderer
and render
methods, required by the Template plugin. The methods are implemented with Template Toolkit.
This module's distribution includes a directory, templates/dir
, and a file templates/inline
that contain stock templates for use with the InlineStore and DirStore plugins.
METHODS
renderer
As implemented, this method just creates a new Template Toolkit engine and stores it in the Module::Starter object.
render( $template, \%options )
This method passes the given template contents and options to the TT2 renderer and returns the resulting document.
AUTHOR
Ricardo SIGNES, <rjbs@cpan.org>
COPYRIGHT
Copyright 2004 Ricardo SIGNES, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.