j2html icon indicating copy to clipboard operation
j2html copied to clipboard

Iterate over ContainerTag s

Open paolop opened this issue 6 years ago • 2 comments

Is there a way to iterate over a ContainerTag to, let's say, to manipulate some attributes after the final ContainerTag object has been generated? In my use-case I've to generate two slightly different versions of the same structure, so I'd like to obtain the variant from the first structure W/O having to regenerate it from scratch.

paolop avatar Nov 12 '19 14:11 paolop

Hmm. There appears to be a getNumChildren(), but no getChildren(). Would you like to submit a PR?

tipsy avatar Nov 12 '19 19:11 tipsy

@tipsy ok, I'll give it a try during the week end :)

paolop avatar Nov 15 '19 10:11 paolop