Hi all,
I'm trying to convert some templates from HTML::Template to TT, but I'm having trouble getting out of the gate. I can't seem to get TT to produce any output, and error logs don't seem to show any problem. This is the test code I'm using:
#!/usr/bin/perl -wT
use strict;
use Template;
use CGI;
my $q = CGI->new;
print $q->header("text/html");
my $template = Template->new({INCLUDE_PATH => '/home/xxxx/yyy/zzzz'});
my $vars = {
message => 'Hello',
};
$template->process('test.html', $vars);
and test.html
<html>
<head>
<title>TestPage</title>
</head>
<body>
<h1>Test Message</h1>
<p>[% message %]</p>
<p>That's it</p>
</body>
</html>
And, as I've said, get no output except the content type header.
Thanks for any help,
Brian