Ron Savage wrote:
Hi RobertRight. And to my taste HT is the one to swallow, with TT the one to spit out.If you care to elaborate I would like to know why?HT is HTML::Template TT is The Template Toolkit Firstly, my choice was a decision taken years ago. It may well be different if taken today. o I found the complexity of TT's docs quite off-putting, although part of the problem was the large quantity of docs, which of course is really a good thing, even if so hard to navigate
That is probably true. I had to get the book to grasp some of it and I am still grasping it.
o I had difficulty learning TT's way of doing things (again, which would be different today), which is simply the way the author thinks and codes. I see this from having written code based on his Pod::POM module [1] o HT is simpler to grasp and utilize, since it corresponds more closely to a 'little language' and hence is more immediately familiar. The substitutions which take place in TT's processing of what you write are more subtle, and more automagical, and hence more abstract, which mattered greatly to me back then. For these reasons I'd recommend HT to first-time users of these modules [1] http://savage.net.au/Perl.html#fancy_pom2_pl
I am kind of drawn to the "simplicity" of HT and there is an article on Perl.com about using "filters" with HT that looks cool.
I ran into the looping data problem though and even though I can turn off checking and it runs it was just a little annoying.
RobertP.S. The looping problem if I remember rightly was I was using one db call to populate different fields in my templates and the loops were dying because I had more "data" than declared in my "loops". In otherwords I would pull out last, first and id but only loop over id and HT didn't like that. I think that is the general gist of it. TT didn't complain about it so I stick with TT.
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.