fixed rendering with variables

pull/1/merge
javi 11 years ago
parent fadcb3391d
commit d1c6c9fb82

@ -11,7 +11,7 @@ tree.Value.prototype.toJS = function() {
v = "'" + v + "'";
} else if (val.is === 'field') {
// replace [varuable] by ctx['variable']
v = v.replace(/\[(.*)\]/g, "ctx['\$1']")
v = v.replace(/\[(.*)\]/g, "data['\$1']")
}
return "_value = " + v + ";";
};

Loading…
Cancel
Save