currently i’m looping through using mustache when i came across the display of authors..
{{#authors}}{{.}}, {{/authors}} //loop through each author names in authors array
the issue is the comma at the end. i prefer the data (JSON from server) untouched. is there a way in mustache to know if you are in the last iteration (and not append a comma) or know if you are in the first iteration (and not prepend a comma)
Not tested!
Overview: add a prefix of “, ” for all but the first name.
Template:
Initialize:
View: