emberjs/ember.js — pull request #1274 by ghempton (2012-08-15 08:57:35+00:00)
Title: Second attempt at bound handlebars helpers

This is an alternate api/implementation to #615 and is a work in progress. This version reuses more of the other binding code paths.

This PR introduces `Ember.Handlebars.registerBoundHelper`. A bound helper could be registered as follows:

```javascript
Ember.Handlebars.registerBoundHelper('capitalize', function() {
return get(this, 'value').toUpperCase();
});
```

The second parameter to `registerBoundHelper` can also be a computed property with dependencies on the value:

```javascript
Ember.Handlebars.registerBoundHelper('capitalizeName', Ember.computed(function() {
var obj = get(this, 'value.name');
return obj.toUpperCase();
}).property('value.name'));
```

Thoughts/feedback?