batmanjs/batman — pull request #1081 by rmosolgo (2014-07-10 17:38:38+00:00)
Title: Filters for observable modifications

These filters return _functions_ that will perform the specified operation when triggered.

They are effectively shorthand for using `data-event` bindings to modify bound objects. For example,

```html

```

is shorthand for

```coffeescript
class MyApp.SomeController extends Batman.Controller
toggleShowDetails: -> @toggle('showDetails')
```

\+

```html

```

It seems like a nice way to remove boilerplate code.

If we're feeling really bold, it would be easy to go further and implement filters for the basic Observable operations like

```html

```

or

```html

```

(In some cases, `set` is overlapping with a normal `data-bind`, but there are many cases where it allows new things)