NAME
WebNano::Renderer::TT - A Template Toolkit renderer for WebNano with dynamic search paths
VERSION
version 0.001
SYNOPSIS
use WebNano::Renderer::TT;
$renderer = WebNano::Renderer::TT->new( root => [ 't/data/tt1', 't/data/tt2' ] );
$out = '';
$renderer->render( template => 'template.tt', search_path => [ 'subdir1', 'subdir2' ], output => \$out );
DESCRIPTION
This is experimental Template Tookit renderer for WebNano. When looking for a template file it scans a cartesian product of static set of paths provided at instance creation time and stored in the root attribute and a dynamic set provided to the render method in the search_path attribute.
ATTRIBUTES
root
INCLUDE_PATH
A mechanism to provide the serach path directly sidestepping the dynamic calculations.
TEMPLATE_EXTENSION
Postfix added to action name to form the template name ( for example 'edit.tt' from action 'edit' and TEMPLATE_EXTENSION 'tt' ).
METHODS
render
new
AUTHOR
Zbigniew Lukasiak <zby@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Zbigniew Lukasiak <zby@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.