Eve::Template - a template engine class.
my $template = Eve::Template->new( path => '/some/include/path', compile_path => '/some/compile/path', expiration_interval => 60); my $output = $template->process( file => 'helloworld.html', var_hash => $var_hash);
Eve::Template is a template engine adapter class. It adapts well known Template package.
a path to template files
a path where compiled template files will be stored
determines how long (in seconds) a template is keeping cached in memory before checking if it is changed
an optional hash of variables that will be additionally made available to all processed templates.
when the template creation was unsuccessful.
Process the template.
A text assembled after processing.
when the processing was unsuccessful.
Copyright 2012 Igor Zinovyev.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.