[Templates] Views in Template Toolkit
Noah Scales
noahjscales at yahoo.com
Thu Jan 31 00:18:35 GMT 2008
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.template-toolkit.org/pipermail/templates/attachments/20080130/afde4777/attachment.htm
More information about the templates
mailing list