My designers want to generate some links like:
        a | b | c

Note the vertical bars between the elements. My first cut is something like:
        #for $foo in $bars
                $bar |
        #end for

But this gives:
        a | b | c |

DTML solves this by offering a higher-level for (called <dtml-in>). The 
loop has access to the value, index, etc. If TS has this, it would be 
something like:
        #for $foo in $bars
                $foo.value
                #if not $foo.isLast
                        |
                #end if
        #end for

My questions:
   - Can I accomplish "a | b | c" in TS now? If so, how?
   - Should we expand TS's #for with the power of <dtml-in>? (I think so.)

The docs for <dtml-in> are at:
   http://www.zope.org/Members/michel/ZB/AppendixA.dtml
Unfortunately, there are no anchors for the sections. Search for "in:" on 
the page (sans quotes) and you will hit it the first time.


-Chuck


_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to