On Fri, 7 Jan 2005, CUMMING, Joe, FM wrote: > The one place which HTML::Template frustrated me was it's "non-support" of > CDBI. After, all cdbi objects are hashes under the covers and cdbi iterators > are arrays, why can't I then pass them to HTML::Template in the way you > would expect?
Because no one has taken the time to make it any easier. I don't use CDBI (I'm an old-school SQL junky) so it won't be me. Maybe you'd like to do it? If it were my job I'd create a sub-class of HTML::Template called HTML::Template::ClassDBI. This sub-class would have an overridden param() method. When it sees that something in param() is a CDBI objects it extracts all the data that's being used in the template (using query()) and forwards the results up the line to SUPER::param(). -sam ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users