{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/3171","labels_url":"https://api.github.com/repos/meteor/meteor/issues/3171/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/3171/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/3171/events","html_url":"https://github.com/meteor/meteor/pull/3171","id":49891464,"number":3171,"title":"Add onEvent methods to Template","user":{"login":"Slava","id":2608446,"avatar_url":"https://avatars.githubusercontent.com/u/2608446?v=3","gravatar_id":"","url":"https://api.github.com/users/Slava","html_url":"https://github.com/Slava","followers_url":"https://api.github.com/users/Slava/followers","following_url":"https://api.github.com/users/Slava/following{/other_user}","gists_url":"https://api.github.com/users/Slava/gists{/gist_id}","starred_url":"https://api.github.com/users/Slava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slava/subscriptions","organizations_url":"https://api.github.com/users/Slava/orgs","repos_url":"https://api.github.com/users/Slava/repos","events_url":"https://api.github.com/users/Slava/events{/privacy}","received_events_url":"https://api.github.com/users/Slava/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Blaze","name":"Blaze","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-11-24T13:53:04Z","updated_at":"2015-01-17T00:37:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/meteor/meteor/pulls/3171","html_url":"https://github.com/meteor/meteor/pull/3171","diff_url":"https://github.com/meteor/meteor/pull/3171.diff","patch_url":"https://github.com/meteor/meteor/pull/3171.patch"},"body":"Add `Template#onCreated`, `Template#onRendered` and `Template#onDestroyed` methods. These are better than assigning `Template.rendered`, etc properties as you can add more than 1 of them w/o overriding previously added event handlers.\r\n\r\nRan test-packages for Blaze.\r\n\r\n@avital @dgreensp"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/70345088","html_url":"https://github.com/meteor/meteor/pull/3171#issuecomment-70345088","issue_url":"https://api.github.com/repos/meteor/meteor/issues/3171","id":70345088,"user":{"login":"Slava","id":2608446,"avatar_url":"https://avatars.githubusercontent.com/u/2608446?v=3","gravatar_id":"","url":"https://api.github.com/users/Slava","html_url":"https://github.com/Slava","followers_url":"https://api.github.com/users/Slava/followers","following_url":"https://api.github.com/users/Slava/following{/other_user}","gists_url":"https://api.github.com/users/Slava/gists{/gist_id}","starred_url":"https://api.github.com/users/Slava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slava/subscriptions","organizations_url":"https://api.github.com/users/Slava/orgs","repos_url":"https://api.github.com/users/Slava/repos","events_url":"https://api.github.com/users/Slava/events{/privacy}","received_events_url":"https://api.github.com/users/Slava/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T00:37:50Z","updated_at":"2015-01-17T00:37:50Z","body":"Updated the usage in examples and packages"}}