On Mon, 18 Jul 2005, Mark Stosberg wrote: > There are a couple features of TT that seem reasonable to support, and > seem at first glance like things that an be added while maintaining > compatibility. > > 1. Support for complex data structures. > > 2. Method calls.
Isn't there something on CPAN to enable this yet? Everytime someone asks I point out how easy this would be with an overridden param() in a sub-class. I figured someone would have gotten on it by now! > To me, these additions wouldn't violate the integrity of H::T's > philosophy, which I interpret as being about keeping the tag language as > simple as possible. #1 I can get behind. #2 makes me itch. There's a high potential for abuse here since methods can have side-effects which would break the straight data-path from code to template to output. > They simply give the programmers more power and freedom expression, and > can help prevent extra hoop jumping when you have an complex data > structure or an object that need to hook up with the template anyway. HTML::Template isn't really about power and freedom of expression. I think TT or EmbPerl are more appropriate for someone that wants those. HTML::Template is more about simplicity and reasonable constraints on expression. I think of my user-base as being composed in equal parts Perl coders and HTML designers. Power and freedom of expression may help the Perl coder but they're nothing but trouble for your HTML designer! -sam ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users