TapQuo/Lungo.js — Issue #32: templates and Nested JSON Objects
Author: daithiw44
Created: 2011-12-06 17:25:11+00:00
State: open

I have pushed to my repo the following addition to allow nested variables be access from templates.

Changes here If you want

https://github.com/daithiw44/Lungo.js/blob/14a428460b923568d41bcfcc787105af8ec170bf/src/view/Lungo.View.Template.Binding.js

Allows the following for example.

lng.View.Template.create('broadcasthist','
@{{property[0].nestedproperty[0].value}}
');

As some object could be big it does not recursively run through the object but rather follows the path of each property and its child.

I found the change easy to work with JSON objects and templates.

Thanks