Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return view functions from resources #2

Open
mstade opened this issue Sep 22, 2015 · 1 comment
Open

return view functions from resources #2

mstade opened this issue Sep 22, 2015 · 1 comment

Comments

@mstade
Copy link
Member

mstade commented Sep 22, 2015

From @aaronhaines on February 11, 2014 13:50

I have a version of this working as per this gist: https://gist.github.com/aaronhaines/8934810

also a example of how the config would look: https://gist.github.com/aaronhaines/8934892

Have a look at the changes on my fork here: https://github.com/aaronhaines/nap

I'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.

Selector 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.

Copied from original issue: sammyt/nap#9

@mstade
Copy link
Member Author

mstade commented Jan 21, 2016

I think we should drop selector negotiation from nap altogether, and let clients deal with such things instead. See #35 for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant