in scripts/FriendlyEats.View.js [392:420]
'data-fir-foreach': function(tel) {
var field = tel.getAttribute('data-fir-foreach');
var values = that.getDeepItem(data, field);
values.forEach(function(value, index) {
var cloneTel = tel.cloneNode(true);
tel.parentNode.append(cloneTel);
Object.keys(modifiers).forEach(function(selector) {
var children = Array.prototype.slice.call(
cloneTel.querySelectorAll('[' + selector + ']')
);
children.push(cloneTel);
children.forEach(function(childEl) {
var currentVal = childEl.getAttribute(selector);
if (!currentVal) {
return;
}
childEl.setAttribute(
selector,
currentVal.replace('~', field + '/' + index)
);
});
});
});
tel.parentNode.removeChild(tel);
},