This is actually a bug that crept into the recent 0.4.0 release but was fixed a couple of days ago. The {{options[i]}}
value - which (because it's inside the {{#products:i}}
section) should resolve as products.0.options.0
and products.0.options.1
and so on - is instead resolving as options.0
and options.1
.
There are two solutions. One is to simply use {{this}}
instead of {{options[i]}}
- that resolves correctly (see fiddle). This assumes that in your real app (as opposed to this reduced test case) you're able to do that.
The second is to use the development version, which includes the fix: http://cdn.ractivejs.org/edge/ractive.js.
We'll try and push out a new stable version in the near future. Sorry for the inconvenience!