lazd / DOMly

The fast template system that creates and clones DOM nodes
MIT License
53 stars 9 forks source link

Support setting an attribute on every generated element automatically #33

Open lazd opened 8 years ago

lazd commented 8 years ago

In order for users to know which elements were created by DOMly, it should be possible to add a marker attribute to every generated element. This allows users to perform quick clean operations on a DOM tree generated by DOMly if they need to re-render, or to identify nodes that were not created by DOMly.