Skip to content

Instantly share code, notes, and snippets.

@wycats
Forked from paul/gist:1185483
Created September 1, 2011 04:59
Show Gist options
  • Save wycats/1185486 to your computer and use it in GitHub Desktop.
Save wycats/1185486 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