ColdBox/coldbox-platform — pull request #83 by webflint (2012-03-08 20:39:13+00:00)
Title: Added a delimiter to collection rendering

Added a new attribute to allow for you to specify a delimiter when rendering a collection. The use case I had for this was I was rendering each item in a collection to a specific JSON format. In JSON each item in a collection needs to be delimited by a comma so this was the way to do this.

I did not want to add a comma to my view that was rendered on the collection because there would alway be one extra comma output for the last item in the collection.

Also useful when output HTML Lists.

Usage:

#renderView( view="item/summary", collection=prc.items, collectionAs="item", collectionDelim="
", prepostExempt=true )#