On 1/25/06, Martin Moss <[EMAIL PROTECTED]> wrote:
> I'm trying to get confirmation whether Template
> toolkit supports the use of class methods.

TT doesn't support class methods natively, but you can use Richard
Clamp's Template::Plugin::Class [0] plugin to do so.  From the docs:

  [% USE cd = Class('Music::CD') %]
  [% FOREACH disc = cd.retrieve_all %]
  [% disc.artist %] - [% disc.title %]
  [% END %]

[0]: http://search.cpan.org/dist/Template-Plugin-Class/

--
(darren)

Reply via email to