On Wed, 25 Jan 2006, Martin Moss wrote:

> Can anybody tell me how to call methods on a class,
> not on an object from within TT2...?

use Template::Plugin::Class;

# then in your template do

[% USE myclass = Class( 'My::Class') %]

[% myclass.some_method %]

See http://search.cpan.org/~rclamp/Template-Plugin-Class/

Simon.

-- 
"I like my coffee like I like my women. In a plastic cup."


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to