walmartlabs/thorax — pull request #219 by eastridge (2013-07-19 20:27:45+00:00)
Title: Add auto currying helpers for views, collections and models

Auto creates curried helpers for available models, collections and views. Where before you would have to do:

{{view child}}

You can now just do:

{{child}}

Models curry the `with` helper. So instead of:

{{model.attributes.key}}

You may do:

{{#model}}{{key}}{{/model}}

I should note that this functionality is fully backwards compatible with all practical use cases. You can still pass in arguments to the curried helpers and still do `{{model.attributes.key}}` `{{collection.length}}`, etc with no modifications. The only use case that goes away is if before you did:

{{model}}

You would have gotten `[Object object]`. If you truly needed that string to be output into your template you are out of luck.