rniemeyer/knockout-classBindingProvider — pull request #1 by drosen0 (2012-09-05 18:40:23+00:00)
Title: Parameters for binding classes

Thanks for this plugin. It has bothered me that I couldn't fully separate the code from the markup. However there are cases where binding classes are too restrictive and I'd like a bit more flexibility than the binding class provides. This pull request allows binding class parameters separated by colons (`:`) to be passed in as arguments to the binding function. I feel that this hybrid still brings the benefits of the plugin and gives enough flexibility to be able to turn off the fallback on the built-in binding.

For example, to render only the selected section:

```html

...

...

...

```

```js
var bindings = {
renderSection: function(context, sectionId) {
return {
'if': this.selectedSectionId() === sectionId
}
}
};
```

Multiple binding class arguments (`binding:arg0:arg1:arg2`) are passed to the binding function as additional parameters (`context, arg0, arg1, arg2`).