Using TT3

use Template3;

my $tt3 = Template3->new;

$tt3->process(
    'hello.tt3',              #   input
    { name => 'Badger' },     #   data
    'hello.html',             #   output
);
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.