ZPT Basics (part 2) - Looking Ahead (
Page 9 of 9 )
And that's about it for the moment. In this article, you learnt a little
more about ZPT, specifically how to introduce decision-making logic into
your templates by means of variables and conditional tests. You also saw
how all that theory can be put to practical use by implementing a simple
form processor for use on a Web page.
In the next segment of this series, I'll be rounding out the
fundamentals 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 the
pun) on the traditional way of implementing loops. Come back next time
to see what I'm talking about...and, until then, go practise.
Note: All examples in this article have been tested on Linux/i586 with
Zope 2.5.0. Examples are illustrative only, and are not meant for a
production environment. Melonfire provides no warranties or support for
the source code described in this article. YMMV!