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

[view]s should be 'resource'-ified #51

Open
ahdinosaur opened this issue Jun 12, 2013 · 1 comment
Open

[view]s should be 'resource'-ified #51

ahdinosaur opened this issue Jun 12, 2013 · 1 comment

Comments

@ahdinosaur
Copy link

we need free validation and documentation of views by incorporating views onto a resource schema.

  • each view is a resource method, where do we put the method signature?
  • also view.index.present(options, callback) or view.sub.dir.create.present(options, callback) of a view instance is confusing, when view.index(options, callback) or view.sub.dir.create(options, callback) is much cleaner
@Marak
Copy link
Member

Marak commented Jun 13, 2013

Yes.

Each view presenter can only export one method, so it would be possible to add a property on that exported function called schema.

Removing .present in favor of directly calling the view name makes sense.

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

No branches or pull requests

2 participants