On Fri, Jun 08, 2001 at 06:43:17AM -0400, Chuck Esterbrook wrote:
> My designers want to generate some links like:
>       a | b | c

A common scenario and one TS should support.

>    - Should we expand TS's #for with the power of <dtml-in>? (I think so.)

I've long supported this.  I haven't personally had a need for it, but it
will come up when people want to do batching (showing a pageful of data
at a time with index numbers, previous/next links, totals, etc).

However, since Tavis is working on his thesis now and about to go on 
vacation, it's not something that can be finished right away (as in this
month).  

We could leverage the fact that $foo.isLast can either be an attribute
or a method and cast it as a method.  But $foo.foos_attribute would also
have to work, and we don't want to mangle the original objects.  

Perhaps better would be to port dtml-in's batching capability.  This would
probably be a large project, however.  #for would need keywords for the batch
size and where to start.  Then $foo.sequenceNumber() would be the relative
index from the start of the page (1-based), etc.  We'd also need to support
"previous" and "next" pseudo-batches for people's navigation 
links (or maybe not: $foo.previousSequenceStartNumber() etc. may overlap
it).

Supporting something comparable to dtml-in would be a major feature.
Someday I've been meaning to look at dtml-in's source and see if it's
self-contained enough to leverage.

-- 
-Mike (Iron) Orr, [EMAIL PROTECTED]  (if mail problems: [EMAIL PROTECTED])
   http://iron.cx/     English * Esperanto * Russkiy * Deutsch * Espan~ol

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

Reply via email to