You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Conflicting mappings for attribute class and value formPayment
at closeTag (/node_modules/plates/lib/plates.js:85:15)
at Array.sort (native)
at compileMappings (/node_modules/plates/lib/plates.js:74:14)
at Object.bind (/node_modules/plates/lib/plates.js:232:29)
at Object.bind (/node_modules/plates/lib/plates.js:659:18)
at Object.processHTML (/ut.js:21:22)
at /main.js:531:28
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)
there is any way i can fix this? also, there is a way to use an id and not a class to refer the object where the html should be added?
Regards
The text was updated successfully, but these errors were encountered:
If you just want to use the id to bind you can rely on the implicit mapping see:
varPlates=require('plates');varhtml='<div id="test">Old Value</div>';vardata={"test": "New Value"};varoutput=Plates.bind(html,data);
from the readme file. Or if you require an explicit mapping try:
varPlates=require('plates');varmap=Plates.Map();varhtml='<div id="test">Old Value</div>';vardata={"foo": "New Value"};map.where('id').is('test').use('foo');varoutput=Plates.bind(html,data,map);console.log(output);
I don't know if i'm doing it wrong or is a bug, but when i try to append a simple :
i get:
there is any way i can fix this? also, there is a way to use an id and not a class to refer the object where the html should be added?
Regards
The text was updated successfully, but these errors were encountered: