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