Comment by themafia

Comment by themafia 20 hours ago

1 reply

The <template> element combined with the `cloneNode` works quite well for this. I've got a simple function which can take templates, clone them, fill in nodes with data from a structure, then prepare it to be added to the page.

Works a treat and makes most frameworks for the same seem completely pointless.

em-bee 19 hours ago

could you share some examples please? i am interested in trying this out.