On Tue, Nov 25, 2003 at 01:21:44PM -0200, Nelson Ferraz wrote:
> My question is: have anybody integrated Class::DBI and Template Toolkit
> using plugins?
This is exactly what I wrote Template::Plugin::Class for. From the
docs:
=head1 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 %]
__CUT__
Actually, that pretty much is all the docs.
http://search.cpan.org/dist/Template-Plugin-Class/lib/Template/Plugin/Class.pm
--
Richard Clamp <[EMAIL PROTECTED]>
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates