I would like to know your thoughts on generating HTML code in my JS code.
I just think the style is html.push("<tag>" + something + "</tag>")pretty annoying. I already tried something with templates inside my HTML file (and put some placeholders in it), and then used its contents to replace the placeholders with my real values.
But maybe you have other ideas, maybe using jQuery.
source
share