fixed rendering with variables
This commit is contained in:
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…
Reference in New Issue
Block a user