You cannot read the key with .in it from Mustache. The Mustache specification indicates what is .used to separate content names. Mustache provides a means of acceleration, but only for HTML content.
Mustache Specification: interpolation
, Mustache. , , .
JavaScript, Jon:
function rename(obj, oldName, newName) {
if(!obj.hasOwnProperty(oldName)) {
return false;
}
obj[newName] = obj[oldName];
delete obj[oldName];
return true;
}
: ...