tmpvar / weld

Template antimatter for Node.js (Browsers too!)
673 stars 39 forks source link

Fails when excessive keys present #3

Closed kallewangstedt closed 13 years ago

kallewangstedt commented 13 years ago

If the key:value object contains pairs that cannot be matched in the DOM it fails.

Ie: Used in an app with multiple documents and different matchings for each document the data object can only contain keys that can be matched in the present document. The data object must therefore be split into multiple objects, one for each document.

There should be a way for Weld to gracefully ignore keys not matching.

heapwolf commented 13 years ago

great find! im adding a test for this now.