On Fri, Dec 03, 2004 at 03:52:17PM -0500, Jason Purdy wrote: > While I'm thinking about this, what do you guys think about these? > > 1) Class::DBI Integration > I'm just starting to pick up CDBI (I know, I'm late to the party ;)) and > it's kind of frustrating to get the data into the template. Or it could > be made easier. I'm not sure if we're talking Plugin or an update to > the core, but what would be really cool is to accept CDBI objects in the > 'associate' parameter:
This can/should happen in your code - simply create a CDBI-derived CDBI::Extended object which has a CGI/HT compatible "params" method, and pass that to associate. Hey presto! If you're wanting to create a bunch of CDBI subclasses, then you just subclass that CDBIE instead. Done. If you think this would be really useful to a lot of people then encapsulate the CDBIE neatly and publish it in CPAN. (Alternatively, you could subclass HT, but since HT already has a well-defined interface for feeding params in, which already interoperates with some Perl modules, it seems more logical to add it on the other side.) -- Clifton -- Clifton Royston -- [EMAIL PROTECTED] Tiki Technologies Lead Programmer/Software Architect Did you ever fly a kite in bed? Did you ever walk with ten cats on your head? Did you ever milk this kind of cow? Well we can do it. We know how. If you never did, you should. These things are fun, and fun is good. -- Dr. Seuss ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users