{"action":"created","issue":{"url":"https://api.github.com/repos/zordius/lightncandy/issues/149","labels_url":"https://api.github.com/repos/zordius/lightncandy/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/zordius/lightncandy/issues/149/comments","events_url":"https://api.github.com/repos/zordius/lightncandy/issues/149/events","html_url":"https://github.com/zordius/lightncandy/issues/149","id":68210169,"number":149,"title":"{{this}} not working correctly in {{#each}} block?","user":{"login":"iwilliams","id":5215799,"avatar_url":"https://avatars.githubusercontent.com/u/5215799?v=3","gravatar_id":"","url":"https://api.github.com/users/iwilliams","html_url":"https://github.com/iwilliams","followers_url":"https://api.github.com/users/iwilliams/followers","following_url":"https://api.github.com/users/iwilliams/following{/other_user}","gists_url":"https://api.github.com/users/iwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/iwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwilliams/subscriptions","organizations_url":"https://api.github.com/users/iwilliams/orgs","repos_url":"https://api.github.com/users/iwilliams/repos","events_url":"https://api.github.com/users/iwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/iwilliams/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zordius/lightncandy/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T22:41:03Z","updated_at":"2015-04-14T01:32:56Z","closed_at":"2015-04-14T01:32:56Z","body":"It seems to me that `{{this}}` is not working as intended in an `{{#each}}` block. Take the following as an example:\r\n\r\nThis template:\r\n```handlebars\r\n{{#each scripts}}\r\n  <script src=\"{{this}}\"></script>\r\n{{/each}}\r\n```\r\nbeing passed this array:\r\n\r\n```php\r\narray(\r\n  \"scripts\" => array(\r\n    \"bower_components/jquery/dist/jquery.min.js\",\r\n    \"bower_components/modernizr/modernizr.js\",\r\n    \"bower_components/foundation/js/foundation.min.js\"\r\n  )\r\n```\r\nproduces this html:\r\n```html\r\n<script src=\"\"></script>\r\n<script src=\"\"></script>\r\n<script src=\"\"></script>\r\n```\r\n\r\nHowever, if I use this template:\r\n```handlebars\r\n{{#each scripts}}\r\n  <script src=\"{{link}}\"></script>\r\n{{/each}}\r\n```\r\nwith this array:\r\n```php\r\narray(\r\n  \"scripts\" => array(\r\n     array(\"link\" => \"bower_components/jquery/dist/jquery.min.js\"),\r\n     array(\"link\" => \"bower_components/modernizr/modernizr.js\"),\r\n     array(\"link\" => \"bower_components/foundation/js/foundation.min.js\")\r\n  )\r\n)\r\n```\r\nI get the intended html:\r\n```html\r\n<script src=\"bower_components/jquery/dist/jquery.min.js\"></script>\r\n<script src=\"bower_components/modernizr/modernizr.js\"></script>\r\n<script src=\"bower_components/foundation/js/foundation.min.js\"></script>\r\n```"},"comment":{"url":"https://api.github.com/repos/zordius/lightncandy/issues/comments/92554786","html_url":"https://github.com/zordius/lightncandy/issues/149#issuecomment-92554786","issue_url":"https://api.github.com/repos/zordius/lightncandy/issues/149","id":92554786,"user":{"login":"zordius","id":1201409,"avatar_url":"https://avatars.githubusercontent.com/u/1201409?v=3","gravatar_id":"","url":"https://api.github.com/users/zordius","html_url":"https://github.com/zordius","followers_url":"https://api.github.com/users/zordius/followers","following_url":"https://api.github.com/users/zordius/following{/other_user}","gists_url":"https://api.github.com/users/zordius/gists{/gist_id}","starred_url":"https://api.github.com/users/zordius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zordius/subscriptions","organizations_url":"https://api.github.com/users/zordius/orgs","repos_url":"https://api.github.com/users/zordius/repos","events_url":"https://api.github.com/users/zordius/events{/privacy}","received_events_url":"https://api.github.com/users/zordius/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T01:32:55Z","updated_at":"2015-04-14T01:32:55Z","body":"Yes, {{.}} means {{this}} and  {{@root}} means root and {{../foo}} means parent foo. And, lightncandy support both mustache and handlebars and focus on performance, so we did not set default to either handlebars or mustache."}}