Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#134384
CrocoDillon
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.