At 11:41 AM 2/7/2002 -0500, Perrin Harkins wrote: >Well, my objects lazy-load too. In fact, I think my approach is totally >compatible with Class::DBI. It's just that I put the retrieved data into a >simple data structure before handing it to the templates. That also allows >me to add transient data that is useful to the templates but doesn't get >stored in the database. > >- Perrin
If you pass TT2 an object that is just a hash that was "blessed" into some class, and use something like [% object.fieldname1 %] in the template, where fieldname1 matches the name of an accessor and the name of the corresponding key in the hash, what happens? Does it call the accessor to return the data, or pull the data directly from the hash? Matthew Pressly
