Add support for depthed resolution of data fields
This commit is contained in:
@@ -77,6 +77,12 @@ export function template(templateSpec, env) {
|
||||
}
|
||||
return data;
|
||||
},
|
||||
data: function(data, depth) {
|
||||
while (data && depth--) {
|
||||
data = data._parent;
|
||||
}
|
||||
return data;
|
||||
},
|
||||
merge: function(param, common) {
|
||||
var ret = param || common;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user