Hello.
Please take this post as compliment on the value and utility of the template
toolkit. I"m writing as a beginner with Perl and with the toolkit. However, I
am already finding TT useful for web development. So far in my reading of the
badger book, I haven't grasped the "view" concept very well. Rather than ask
for a lesson from someone I know(perhaps the wise thing), I thought I'd submit
this quote from a positive review of the badger book, just to see what I could
understand of any replies to it.
----------------
The "view" feature of TT, discussed in Chapter 3, left me excited but
questioning why it's so limited. If different views can be provided for hashes,
arrays, and scalars, why stop there? The views should be declared based on
class name, so an object of class "A::Beta" could have a different dynamic view
from "A::Gamma" without any extra work on the programmer's part. This was just
about the only significant question I had; there is almost nothing I can
nitpick in the TT book.
-----------------
from http://www.ibm.com/developerworks/linux/library/l-cpbooks.html
Can anyone comment on the purpose and value of views, with respect to this
reviewer's question?
-Noah Scales
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates