Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 5 by
martin.m...@gmail.com: jsselect to loop over object
properties
http://code.google.com/p/google-jstemplate/issues/detail?id=5
For data:
var tplData = {username:"Jane User",
addresses:{
primary: {location:"111 8th Av.", label:"NYC front
door"},
2: {location:"76 9th Av.", label:"NYC back door"},
3: {location:"Mountain View", label:"Mothership"}
}
};
It should be possible to loop over addresses with jsselect.
Not sure if $index should contain the property name or they should be
additional $key variable.