{"action":"created","issue":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/337","repository_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder","labels_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/337/comments","events_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/337/events","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/issues/337","id":169941827,"number":337,"title":"templating: first/last element as variable","user":{"login":"IMM0rtalis","id":1506919,"avatar_url":"https://avatars.githubusercontent.com/u/1506919?v=3","gravatar_id":"","url":"https://api.github.com/users/IMM0rtalis","html_url":"https://github.com/IMM0rtalis","followers_url":"https://api.github.com/users/IMM0rtalis/followers","following_url":"https://api.github.com/users/IMM0rtalis/following{/other_user}","gists_url":"https://api.github.com/users/IMM0rtalis/gists{/gist_id}","starred_url":"https://api.github.com/users/IMM0rtalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IMM0rtalis/subscriptions","organizations_url":"https://api.github.com/users/IMM0rtalis/orgs","repos_url":"https://api.github.com/users/IMM0rtalis/repos","events_url":"https://api.github.com/users/IMM0rtalis/events{/privacy}","received_events_url":"https://api.github.com/users/IMM0rtalis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-08T14:49:17Z","updated_at":"2016-08-09T07:07:04Z","closed_at":null,"body":"Heyho,\r\n\r\nI came across a small problem while templating.\r\nWhen I want to show sth. different for the first and/or last element I have nearly no choice to do it dynamically. \r\n\r\n[Template](https://github.com/mistic100/jQuery-QueryBuilder/blob/master/src/template.js#L1)\r\n\r\nIf I want to get the first group I have to use sth like \r\n`{{? it.group_id === \"IDOFELEMENT_group_0\" }}First{{?}}`\r\n\r\nThis is just a feature-request, but could you provide sth like\r\n- first\r\n- last\r\n- index\r\n?\r\n\r\nBest,\r\nFlorian"},"comment":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/comments/238471386","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/issues/337#issuecomment-238471386","issue_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/337","id":238471386,"user":{"login":"mistic100","id":41597,"avatar_url":"https://avatars.githubusercontent.com/u/41597?v=3","gravatar_id":"","url":"https://api.github.com/users/mistic100","html_url":"https://github.com/mistic100","followers_url":"https://api.github.com/users/mistic100/followers","following_url":"https://api.github.com/users/mistic100/following{/other_user}","gists_url":"https://api.github.com/users/mistic100/gists{/gist_id}","starred_url":"https://api.github.com/users/mistic100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistic100/subscriptions","organizations_url":"https://api.github.com/users/mistic100/orgs","repos_url":"https://api.github.com/users/mistic100/repos","events_url":"https://api.github.com/users/mistic100/events{/privacy}","received_events_url":"https://api.github.com/users/mistic100/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T07:07:04Z","updated_at":"2016-08-09T07:07:04Z","body":"No there is no loop, each HTML block is builded and inserted on demand without refreshing everything."}}
{"actor":{"display_login":"mistic100"}}