And that's about it for the moment. In this article, you learnt a littlemore about ZPT, specifically how to introduce decision-making logic intoyour templates by means of variables and conditional tests. You also sawhow all that theory can be put to practical use by implementing a simpleform processor for use on a Web page.
In the next segment of this series, I'll be rounding out thefundamentals with a look at the various loop constructs provided by TAL.As with everything you've seen so far, TAL comes with its own twist(pardon thepun) on the traditional way of implementing loops. Come back next timeto see what I'm talking about...and, until then, go practise.
Note: All examples in this article have been tested on Linux/i586 withZope 2.5.0. Examples are illustrative only, and are not meant for aproduction environment. Melonfire provides no warranties or support forthe source code described in this article. YMMV!
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |