in reply to Template Toolkit example getting blank output page

See the various examples in the Template documentation for the Process method. You need to define how you'd like it to output. For example:

my $output=''; $tt->process('main.html',$data, \$output) || die $tt->error(); print $output;