"Lyle D. Brooks" <[EMAIL PROTECTED]> writes:

> Hmmmmm....I've been reading the manual and still after several
> iteration I can't seem to stumble on the right syntactical 
> incantations to eliminate the whitespace to achieve the desired
> output.  I'm using the version 2.04 downloaded from www.tt2.org.

There is a TRIM configuration option that will remove whitespace
around included files and blocks. It should work to just:

my $template = Template->new({ 
                TRIM => 1,
           });

Include POST_CHOMP and PRE_CHOMP to also remove whitespace around
directives:

my $template = Template->new({ 
                TRIM => 1,
                PRE_CHOMP  => 1,
                POST_CHOMP => 1,
           });




-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html


Reply via email to