Template::Plugin::Class - allow calling of class methods on arbitrary classes


Template-Plugin-Class documentation  | view source Contained in the Template-Plugin-Class distribution.

Index


NAME

Top

Template::Plugin::Class - allow calling of class methods on arbitrary classes

SYNOPSIS

Top

  [% USE foo = Class('Foo') %]
  [% foo.bar %]

DESCRIPTION

Top

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 %]

CAVEATS

Top

You won't be able to directly call AUTOLOAD or DESTROY methods on the remote class. This shouldn't be a huge hardship.

BUGS

Top

Apart from the mentioned caveat, none currently known. If you find any please contact the author.

AUTHOR

Top

Richard Clamp <richardc@unixbeard.net>

COPYRIGHT

Top

SEE ALSO

Top

Template


Template-Plugin-Class documentation  | view source Contained in the Template-Plugin-Class distribution.