DTML Basics (part 4) (
Page 1 of 9 )
In this concluding article, dip your toes in the waters of more advanced DTML
programming, with explanations of the , and tags.Last time out, you learned about sequences, and how they could be processed with
the <dtml-in> loop construct. You also learned about the special variables
that DTML provides to developers to help them identify and take advantage of special
sequence elements - the first element, the last element, odd and even elements
and so on. Finally, you wrapped things up with a couple of simple applications
based on sequences - a pager and a directory viewer.
In this final article in the series, I'm going to conclude this tour of DTML
by introducing you to a couple of other members of the family - the <dtml-with>
construct, which lets you manipulate the DTML namespace; the <dtml-let> construct,
which lets you access variable values in different ways; and the <dtml-tree>
construct, which provides a simple, widget-based interface to constructing tree
structures in DTML.