sproutcore/sproutcore20 — Issue #219: Reduce the verbosity of specifying both a target/binding path in a template?
Author: ebryn
Created: 2011-11-24 01:41:12+00:00
State: open

It'd be nice to have a way to reduce the verbosity of specifying a target/binding path in a template.

For example:
```{{view SC.Button target="App.controller" action="save" isEnabledBinding="App.controller.isLoaded"}}```

Tom pointed out you can use ```#with``` to shorten the binding path, but it doesn't work with the target attribute:
```{{#with App.controller}}
{{view SC.Button target="App.controller" action="save" isEnabledBinding="isLoaded"}}
{{/with}}
```

Can we make the target attribute context aware?