I'm trying to use HTML::Template in my script. I have wdi.tmpl in the same folder as my script, and I use these lines:
my $template = HTML::Template->new(filename => 'wdi.tmpl'); # Later... $template->param(DIRLINKS => "1"); $template->param(CONTENT => "2"); # At the end... $template->output();
However, no matter what I do I only get a blank page. I viewed the source and it looks like it's just a standard 'blank page' line. What am I doing wrong?
Edited by davido: Added code tags and fixed HTML.
In reply to HTML::Template Isn't Working by rjahrman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |