{"action":"opened","issue":{"url":"https://api.github.com/repos/websdk/nap/issues/2","labels_url":"https://api.github.com/repos/websdk/nap/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/websdk/nap/issues/2/comments","events_url":"https://api.github.com/repos/websdk/nap/issues/2/events","html_url":"https://github.com/websdk/nap/issues/2","id":107702280,"number":2,"title":"return view functions from resources","user":{"login":"mstade","id":605731,"avatar_url":"https://avatars.githubusercontent.com/u/605731?v=3","gravatar_id":"","url":"https://api.github.com/users/mstade","html_url":"https://github.com/mstade","followers_url":"https://api.github.com/users/mstade/followers","following_url":"https://api.github.com/users/mstade/following{/other_user}","gists_url":"https://api.github.com/users/mstade/gists{/gist_id}","starred_url":"https://api.github.com/users/mstade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstade/subscriptions","organizations_url":"https://api.github.com/users/mstade/orgs","repos_url":"https://api.github.com/users/mstade/repos","events_url":"https://api.github.com/users/mstade/events{/privacy}","received_events_url":"https://api.github.com/users/mstade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-22T12:12:52Z","updated_at":"2015-09-22T12:12:52Z","closed_at":null,"body":"_From @aaronhaines on February 11, 2014 13:50_\n\nI have a version of this working as per this gist: https://gist.github.com/aaronhaines/8934810\r\n\r\nalso a example of how the config would look: https://gist.github.com/aaronhaines/8934892\r\n\r\nHave a look at the changes on my fork here: https://github.com/aaronhaines/nap\r\n\r\nI'm creating a response object and passing it though as the scope to the various handlers. Probably need a better solution for preventing the response scope from being exposed to the resource function.\r\n\r\nSelector negotiation is now a standalone function which can be optionally used by views and could be moved out of the core library along with the 'into' client. nap itself doesn't need to have any dom handling code at all. \r\n\r\n\n\n_Copied from original issue: sammyt/nap#9_"}}