String join

66 views
Skip to first unread message

Ben Hood

unread,
Sep 11, 2015, 9:30:40 AM9/11/15
to mustache.java
Hi,

Is there a way to specify a Mustache template to achieve a string join, i.e. if I have an array, I want to separate each element with a comma, except for the last element in the array?

Thanks,

Ben

Sam

unread,
Sep 14, 2015, 12:24:19 PM9/14/15
to mustache.java
Nothing native. However, I have an example that lets you decorate collections with some methods to get first/last/index:

Reply all
Reply to author
Forward
0 new messages