Re: [Templates] Some virtual methods do not work

2013-04-09 Thread Dave Howorth
Kiss Gabor (Bitman) wrote:
 Dear folks,
 
 I'm pretty new to TT.
 
 I was just creating my first project when I noticed that
 virtual method trim produces empty output.
 
 I read http://www.template-toolkit.org/docs/manual/VMethods.html
 several times but it did not help.
 Finally I wrote this test template:

What version of TT are you using? What does the VMethods manual page say
on your machine? trim only became a VMethod in the latest release, for
example. Before that it is [only] a filter.

Cheers, Dave

___
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates


Re: [Templates] Some virtual methods do not work

2013-04-09 Thread Kiss Gabor (Bitman)
 What version of TT are you using? What does the VMethods manual page say
 on your machine? trim only became a VMethod in the latest release, for
 example. Before that it is [only] a filter.

Oh! What a lamer am I! :-)

It is installed from libtemplate-perl 2.22-0.1 Debian package.
However Template(3pm) says
Template Toolkit version 2.20_1, released April 2009.

Sorry for the line noise.

Gabor

___
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates


Re: [Templates] Some virtual methods do not work

2013-04-09 Thread Dave Howorth
Kiss Gabor (Bitman) wrote:
 What version of TT are you using? What does the VMethods manual page say
 on your machine? trim only became a VMethod in the latest release, for
 example. Before that it is [only] a filter.
 
 Oh! What a lamer am I! :-)

Not at all. I only guessed what the reason might be when I found that my
most 'up-to-date' machine also showed the same symptoms :( I suppose it
will take a little time for the latest update to work its way through
the distros by means of new releases. In the meantime, you can install
it from CPAN, of course.

___
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates