[Templates] Modifying TT functions at run time

darren chamberlain dlc@users.sourceforge.net
Mon, 4 Nov 2002 11:35:33 -0500


* Simon Wilcox <essuu@ourshack.com> [2002-11-04 11:00]:
> Without testing it, I wonder if vmethods work on strings, i.e. 
> [% "/path/to/image.jpg".imgsize %] ?

vmeths don't work like that:

  $ tpage
  [% f = "/path/to/image.jpeg"; f.length %]
  [%     "/path/to/image.jpeg".length    %]

  file error - parse error: input file handle line 2: unexpected token (.)
    [% "/path/to/image.jpeg".length %]

What so you think this is, python?  ;)

(darren)

-- 
I don't mow lawns for the reason that I don't shave.