batiste / pug-vdom

PUG template to HyperScript Virtual DOM
MIT License
18 stars 6 forks source link

Add vdom keys support #8

Closed gryphonmyers closed 7 years ago

gryphonmyers commented 7 years ago

This adds support for VDOM's key feature, which allows for more efficient patches by reordering nodes instead of mutating them. For now, we just use the id attribute, as it's a convenient unique identifier. At some point, we may want to add an option to customize which attribute is used.

batiste commented 7 years ago

Interesting. I didn't knew this feature.