Hi,
I am very interested in using the Templates.pm for other scripts. From what I understand, this is the only item I should need?
And when I call to load a template, lets say "test.html", from my cgi script, I must call on the sub load_template
correct?
I have glanced over the subs in HTML_Templates.pm, but I am stumped. What format should I use when calling to load template "test.html" into a program?
Would it go something like this:
my $output = &load_template ('test.html', { $scalars $needed $to_be_parsed }, undef, $template);
defined $dynamic and &clean_output($dynamic, \$output);
print $output;
Any help would be appreciated.
Thanks.
Robert Blackstone
Webmaster of Scato Search
http://www.scato.com
I am very interested in using the Templates.pm for other scripts. From what I understand, this is the only item I should need?
And when I call to load a template, lets say "test.html", from my cgi script, I must call on the sub load_template
correct?
I have glanced over the subs in HTML_Templates.pm, but I am stumped. What format should I use when calling to load template "test.html" into a program?
Would it go something like this:
my $output = &load_template ('test.html', { $scalars $needed $to_be_parsed }, undef, $template);
defined $dynamic and &clean_output($dynamic, \$output);
print $output;
Any help would be appreciated.
Thanks.
Robert Blackstone
Webmaster of Scato Search
http://www.scato.com