[Catalyst] Catalyst::View::TT

Krzysztof Krzyżaniak eloy at pawnhearts.eu.org
Mon Nov 13 11:32:22 GMT 2006


Ash Berlin <ash at cpan.org> writes:

> Ivan Wills wrote:
>> Hi,
>>
>> I'm using Catalyst::View::TT to display my pages. I'm having trouble
>> removing excess blank lines appearing at the top of my files.
>>
>> I realise this is not normally a problem but I am playing with mixing
>> SVG and XHTML (with content-type=text/xhtml) but Firefox considers the
>> extra blank lines to be an error when in XML rendering mode if they
>> appear before the <?xml ... ?> deceleration.
>>
>> Any one know how to remove those blank lines?
>
> [% END -%]
>
> also known as RTFM ;)

or options of template toolkit

       PRE_CHOMP, POST_CHOMP
           Remove whitespace before/after directives (default: 0/0).

  eloy
-- 
-------e-l-o-y----------------------------e-l-o-y- at -k-o-f-e-i-n-a-.-n-e-t------

       jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej



More information about the Catalyst mailing list