Re: inserting separator between lis

Jonathan Revusky <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Zemian Deng wrote:
> Hello list,
> 
> I have:
> 
> <#assign my = [0,1,2,3,4,5,6,7,8,9]/>
> [<#list my as x>'${x}', </#list>]

> 
> producing: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ]
> 
> Is there a clean way to remove the last unwanted comma 

[<#list my as x>${x}<#if x_has_next>, </#list>]

JR

> 
> Thanks,
> Z
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.