New recommended jQuery templates?

Nemus021

New Member
jQuery Templates have been deprecated for some time now.I have some data in the form of a JavaScript object that I want to format as HTML and append to the DOM. What's the best way of doing that these days?[*]Should I build up an HTML string?[*]Should I create elements via jQuery such as \[code\]$('<li>',{id:'my-'+Id}).append($('<span>').text(myText))\[/code\] ?[*]Is there a replacement/mature subistute for jQuery templates?
 
Back
Top