On 25 Jan 2006, at 11:03, Martin Moss wrote:
All, I'm trying to get confirmation whether Template toolkit supports the use of class methods. This doesnt' seem to to work... :- $string = 'My::Class'; [% string.some_method %] Whereas this does:- my $object = My::Class->new; [% object.some_method %] Can anybody tell me how to call methods on a class, not on an object from within TT2...?
Template::Plugin::Class is very handy for that. [% USE c = Class(string); o = c.new(); %] _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
