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 behaviors, binders, and common operations #5

Closed
thejohnfreeman opened this issue May 7, 2012 · 0 comments
Closed

View behaviors, binders, and common operations #5

thejohnfreeman opened this issue May 7, 2012 · 0 comments

Comments

@thejohnfreeman
Copy link
Member

View behavior helpers should accept a hash of operations and directly resort to the common operations if left unspecified. The common operations presume the view type when the helpers should be generic, but that's ok---caller beware.

We should not expect that the built-in binders will ever need to be undefined. If they do, the client can always delete them.

We can tolerate tighter coupling between the binding controller singleton and the built-in binders. No need for an html namespace; just attach the binders directly to the binding controller singleton.

thejohnfreeman added a commit to thejohnfreeman/hotdrink that referenced this issue May 9, 2012
Issue HotDrink#5

- All binders are in hd.binders.
- Assume that built-in binders will never need to be undefined.
- Custom binders can extend sub-contexts with custom values, e.g., $index.
- Binding controller is a singleton with two entries: hd.bind for users and
  hd.subbind for binders.
- View behaviors use sensible defaults for view methods based on the
  assumption that the view is an HTML widget.
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

1 participant