{"action":"opened","issue":{"url":"https://api.github.com/repos/aldeed/meteor-template-extension/issues/35","labels_url":"https://api.github.com/repos/aldeed/meteor-template-extension/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-template-extension/issues/35/comments","events_url":"https://api.github.com/repos/aldeed/meteor-template-extension/issues/35/events","html_url":"https://github.com/aldeed/meteor-template-extension/issues/35","id":95081476,"number":35,"title":"Getting firstNode with Template.forEach(callback)","user":{"login":"SachaG","id":358832,"avatar_url":"https://avatars.githubusercontent.com/u/358832?v=3","gravatar_id":"","url":"https://api.github.com/users/SachaG","html_url":"https://github.com/SachaG","followers_url":"https://api.github.com/users/SachaG/followers","following_url":"https://api.github.com/users/SachaG/following{/other_user}","gists_url":"https://api.github.com/users/SachaG/gists{/gist_id}","starred_url":"https://api.github.com/users/SachaG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SachaG/subscriptions","organizations_url":"https://api.github.com/users/SachaG/orgs","repos_url":"https://api.github.com/users/SachaG/repos","events_url":"https://api.github.com/users/SachaG/events{/privacy}","received_events_url":"https://api.github.com/users/SachaG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T01:31:32Z","updated_at":"2015-07-15T01:31:32Z","closed_at":null,"body":"I'm doing:\r\n\r\n```\r\nTemplate.onRendered(function () {\r\n   console.log(this)\r\n});\r\n```\r\n\r\nAnd: \r\n\r\n```\r\nTemplate.forEach(function (template) {\r\n   console.log(template)\r\n});\r\n```\r\n\r\nIn the first case, the template has a `firstNode` property which can be used to manipulate its DOM element, but in the second case that property doesn't exist. \r\n\r\nIs there a way to access it? Basically I'm trying to trigger a callback on all templates for arbitrary events (such as route changes), and not just once when they initially render. \r\n\r\n(see: https://www.youtube.com/watch?v=7Ux4wxg7Kko)"}}