I think either will work (literal or keypath): http://jsfiddle.net/snD3r/10/


On Wed, Feb 12, 2014 at 10:05 AM, Justin Li <notifications@github.com>wrote:

> In docs/13_view.litcoffee:
>
> >
> > -Adding to a view's subview set will automatically update the tree, and parse
> > -the template and bindings. If the superview is already in the DOM, this will
> > +```coffeescript
> > +class App.MultiplierView extends Batman.View
> > +  @option 'amount', 'multiplier'
> > +  @accessor 'finalAmount', -> @get('amount') * @get('multiplier')
> > +```
> > +
> > +```html
> > +<div data-view='MultiplierView' data-view-amount='10' data-view-multiplier='8'>
>
> 10 and 8 need to be keypaths.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/batmanjs/batman/pull/970/files#r9678196>
> .
>