Best way for creating html pages with Jquery?

Best way for creating html pages with Jquery?

Hi

I am thinking about the best solution for filling рtml template with Data from API(json).
For example, my API returns 100 rows of comments. how its better to insert in template?
One-by-one groing through each row of json array add insert in html? 
Or create entire HTML element in Jquery and insert in HTML entire HTML code?
Maybe there is some best practice on how to work with Html templates + API(json)
Thanks a lot!