in reply to Re: Template Toolkit: Output one template to Sendmail, another to browser?
in thread Template Toolkit: Output one template to Sendmail, another to browser?
sub parse_template($;$) { my $filename = shift; my $vars = shift || {}; my $parsed; $template->process($filename, $vars, \$parsed) or die 'Couldn\'t o +pen template: ' . $template->error(); return $parsed; }
|
|---|