Home › Forums › JavaScript › Inserting the same code for use as a block of elements › Re: Inserting the same code for use as a block of elements
May 7, 2013 at 4:32 pm
#134384
Participant
Personally I would build the whole thing in JS. I sort of like John’s implementation with a ‘prototype’ node, and it seems to do a better job of separating markup and script… but it still feels hacky to me and it’s weird to have markup for content that shouldn’t be there yet.