Using TT3
use Template3; my $tt3 = Template3->new; $tt3->process( 'hello.tt3', # input { name => 'Badger' }, # data 'hello.html', # output );
Template3notTemplate(for now)Template::TT3::*notTemplate::*(for now)- Errors are thrown as exceptions - no need to check return value
Thus Spake Andy:
This is a sample Perl program. It's rather like the TT2 version except
that you use Template3 instead of Template and you don't need to
check for errors.