On Fri, 7 Jan 2005, Mark Fuller wrote: > I'm not a big object guy. Subclassing H::T is probably beyond my capability.
I doubt that. Give it a try. If you have trouble, post here and I'll be happy to give you a hand. If you have no idea where to start I'd suggest picking up Damian Conway's "Object Oriented Perl". It's a great book. > However, if you think it would be useful to have a "persistent evaluation" > of the *cached* template (so that the partially-evaluated template is > returned with each subsequent "new" method calls), I hope you'll keep it in > mind if/when H::T is enhanced. Why? I still haven't heard a compelling use-case aside from dynamic includes which I think can be handled in better ways. > Sorry if this is a dumb question, but is there an easy way I could clone the > template object in $my_template_hash{$visitor_language}, perform my single > display-specific evaluations upon it (without disturbing the original > object), and then reclone it for the next display (discarding the earlier > clone)? If there is a way, in your opinion would this be more or less > efficient than me performing my own re-evaluation of things that otherwise > would be default values (i.e., the problem mentioned in the previous > paragraph)? Easy? No, I doubt it. I can think of some hard ways... -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