Thanks Geoff,
that's way simpler than what came to my mind.

I you want to be stickly about whitespace:
#set separator = ''
#for $foo in $bars
$separator$foo #set separator = '| '
#end for

or if you don't mind introducing an extra \n after each $foo:

#set separator = ''
#for $foo in $bars
$separator$foo
#set separator = '| ' 
#end for

I'll add this to the examples in the User's Guide.
Tavis

On Friday 08 June 2001 06:18, Geoff Talvola wrote:
> In Python you could say:
>
> separator = ''
> for foo in bars
>          write(separator)
>          write(foo)
>          separator = ' | '
>
> Translate that to TemplateServer syntax and you're all
> set.


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

Reply via email to