Provided by: libtemplate-plugin-class-perl_0.13-3_all
Template::Plugin::Class - allow calling of class methods on arbitrary classes
[% USE foo = Class('Foo') %] [% foo.bar %]
Template::Plugin::Class allows you to call class methods on arbitrary classes. One use for this is in Class::DBI style applications, where you may do somthing like this: [% USE cd = Class('Music::CD') %] [% FOREACH disc = cd.retrieve_all %] [% disc.artist %] - [% disc.title %] [% END %]
You won't be able to directly call "AUTOLOAD" or "DESTROY" methods on the remote class. This shouldn't be a huge hardship.
Apart from the mentioned caveat, none currently known. If you find any please contact the author.
Richard Clamp <email@example.com>
Copyright (C) 2003, 2004, 2006 Richard Clamp. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.