Home > Enterprise >  How can Perl's Template remove the whitespace following a directive?
How can Perl's Template remove the whitespace following a directive?

Time:11-11

I have the following template

[% DEFAULT label = 'null' %]
order: '[% order %]',
name:  '[% name %]',
product:'[% product %]',
label : '[% label %]'

which included on a template my.tt file

on Perl I have the following configuration :

my $template    = Template->new();
open(my $fh, '>:raw', \$report); 
$template->process('my.tt', \           
  • Related