-
-
05 May 2009 13:52:25 UTC
- Distribution: Template-Plugin-Class
- Module version: 0.14
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (3243 / 4 / 0)
- Kwalitee
Bus factor: 0- 82.98% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (2.34KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Template
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Template::Plugin::Class - allow calling of class methods on arbitrary classes
SYNOPSIS
[% USE foo = Class('Foo') %] [% foo.bar %]
DESCRIPTION
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
You won't be able to directly call
AUTOLOAD
orDESTROY
methods on the remote class. This shouldn't be a huge hardship.BUGS
Apart from the mentioned caveat, none currently known. If you find any please contact the author.
AUTHOR
Richard Clamp <richardc@unixbeard.net>
COPYRIGHT
Copyright (C) 2003, 2004, 2006, 2009 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.
SEE ALSO
Module Install Instructions
To install Template::Plugin::Class, copy and paste the appropriate command in to your terminal.
cpanm Template::Plugin::Class
perl -MCPAN -e shell install Template::Plugin::Class
For more information on module installation, please visit the detailed CPAN module installation guide.