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

consistent plugin api #5

Open
queckezz opened this issue Apr 5, 2014 · 2 comments
Open

consistent plugin api #5

queckezz opened this issue Apr 5, 2014 · 2 comments

Comments

@queckezz
Copy link

queckezz commented Apr 5, 2014

I think we should follow a consistent plugin api like how rework, component/model, builder.js does:

var View = ripple(tmpl)
  .use(refs())

// instead of 
  .use(refs)

that way the plugin maker can add options later on without breaking backwards compatibility. It's also a pain to find out which ones uses the first method and which ones the second, especially when you use many plugins at once. What do you think?

@anthonyshort
Copy link
Contributor

Yeah that sounds good to me, mainly for backwards compatibility. I'll make the changes the various plugins.

@bmcmahen
Copy link

+1 on this. I like the standard refs(), even if it looks a bit less pretty.

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

3 participants