{"action":"created","issue":{"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/221","repository_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs","labels_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/221/comments","events_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/221/events","html_url":"https://github.com/sendgrid/sendgrid-nodejs/issues/221","id":147331599,"number":221,"title":"How to iterate array of objects in Sendgrid template?","user":{"login":"sabapk","id":3510754,"avatar_url":"https://avatars3.githubusercontent.com/u/3510754?v=3","gravatar_id":"","url":"https://api.github.com/users/sabapk","html_url":"https://github.com/sabapk","followers_url":"https://api.github.com/users/sabapk/followers","following_url":"https://api.github.com/users/sabapk/following{/other_user}","gists_url":"https://api.github.com/users/sabapk/gists{/gist_id}","starred_url":"https://api.github.com/users/sabapk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabapk/subscriptions","organizations_url":"https://api.github.com/users/sabapk/orgs","repos_url":"https://api.github.com/users/sabapk/repos","events_url":"https://api.github.com/users/sabapk/events{/privacy}","received_events_url":"https://api.github.com/users/sabapk/received_events","type":"User","site_admin":false},"labels":[{"id":23244169,"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/labels/status:%20help%20wanted","name":"status: help wanted","color":"0b02e1","default":false},{"id":23244126,"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/labels/type:%20question","name":"type: question","color":"d7e102","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-04-11T06:52:18Z","updated_at":"2017-05-31T19:06:14Z","closed_at":"2016-06-28T22:26:35Z","body":"Mandrill provides support for Handlebars template and so looping is supported. As I read, Sendgrid doesnot support `each` like directive. So how do the sendgrid users tackle this shortcoming?\n\nI want to loop through the products, as shown in below object.\n\n```\nproducts:\n[ { name: 'VEEBA SWEET CHILLI SAUCE 1KG',\n   qty: 2,\n   price: 145,\n   packSize: '1 KG',\n   itemSubTotal: 290,\n   comments: null },\n { name: 'Chilled French Fries',\n   qty: 1,\n   price: 85,\n   packSize: '1 KG',\n   itemSubTotal: 85,\n   comments: null } ]\n```\n"},"comment":{"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/comments/305286280","html_url":"https://github.com/sendgrid/sendgrid-nodejs/issues/221#issuecomment-305286280","issue_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/221","id":305286280,"user":{"login":"eupharis","id":847862,"avatar_url":"https://avatars3.githubusercontent.com/u/847862?v=3","gravatar_id":"","url":"https://api.github.com/users/eupharis","html_url":"https://github.com/eupharis","followers_url":"https://api.github.com/users/eupharis/followers","following_url":"https://api.github.com/users/eupharis/following{/other_user}","gists_url":"https://api.github.com/users/eupharis/gists{/gist_id}","starred_url":"https://api.github.com/users/eupharis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eupharis/subscriptions","organizations_url":"https://api.github.com/users/eupharis/orgs","repos_url":"https://api.github.com/users/eupharis/repos","events_url":"https://api.github.com/users/eupharis/events{/privacy}","received_events_url":"https://api.github.com/users/eupharis/received_events","type":"User","site_admin":false},"created_at":"2017-05-31T19:06:14Z","updated_at":"2017-05-31T19:06:14Z","body":"+1! Iterators would be awesome!!"}}
{"actor":{"display_login":"eupharis"}}