{"action":"created","issue":{"url":"https://api.github.com/repos/meteorhacks/flow-layout/issues/31","labels_url":"https://api.github.com/repos/meteorhacks/flow-layout/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/meteorhacks/flow-layout/issues/31/comments","events_url":"https://api.github.com/repos/meteorhacks/flow-layout/issues/31/events","html_url":"https://github.com/meteorhacks/flow-layout/issues/31","id":94549269,"number":31,"title":"before and after callbacks","user":{"login":"teejayhh","id":2525235,"avatar_url":"https://avatars.githubusercontent.com/u/2525235?v=3","gravatar_id":"","url":"https://api.github.com/users/teejayhh","html_url":"https://github.com/teejayhh","followers_url":"https://api.github.com/users/teejayhh/followers","following_url":"https://api.github.com/users/teejayhh/following{/other_user}","gists_url":"https://api.github.com/users/teejayhh/gists{/gist_id}","starred_url":"https://api.github.com/users/teejayhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teejayhh/subscriptions","organizations_url":"https://api.github.com/users/teejayhh/orgs","repos_url":"https://api.github.com/users/teejayhh/repos","events_url":"https://api.github.com/users/teejayhh/events{/privacy}","received_events_url":"https://api.github.com/users/teejayhh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-12T09:08:37Z","updated_at":"2015-07-12T14:27:57Z","closed_at":null,"body":"First of all I really like meteorhacks libs and I wanted to give flowrouter/ flowlayout a shot. So I played around with it a little bit and tried to implement transitions between route changes. As far as I can see there is no code which gets called just after a template has been added to the dom or just before it gets removed from the dom.  \r\n\r\nIt is possible to use -> http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#mutation-observers  and bind event listeners to templates. Those dom events should be bound to the regions. I am just brainstorming here and would like your opinion if this could be a good solution without touching the layout component at all. Or if it would be better to implement callbacks which delay the reset  or on after insert?\r\n\r\nCheers Thomas"},"comment":{"url":"https://api.github.com/repos/meteorhacks/flow-layout/issues/comments/120725346","html_url":"https://github.com/meteorhacks/flow-layout/issues/31#issuecomment-120725346","issue_url":"https://api.github.com/repos/meteorhacks/flow-layout/issues/31","id":120725346,"user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T14:27:57Z","updated_at":"2015-07-12T14:27:57Z","body":"I'm quite not sure about this.\r\nBut we have triggers in the router: https://github.com/meteorhacks/flow-router#triggers"}}