Skip to content

Instantly share code, notes, and snippets.

@paul
Created September 1, 2011 04:56
Show Gist options
  • Save paul/1185483 to your computer and use it in GitHub Desktop.
Save paul/1185483 to your computer and use it in GitHub Desktop.
arr = [1,2,3]
{{#each }}
{{this}},
{{/each}}
produces:
1,2,3,
Can I do something to produce:
1,2,3
instead?
{{#each arr}}
{{this}}{{#unless arr.indexOf(this) == arr.length-1}},{{/unless}}
{{/each}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment