#127: Basics of JavaScript Templating




CSS-Tricks Screencasts show

Summary: <p>A template is a chunk of HTML that you need to inject onto the page. Often templates are created "server side" - in that they come to the JavaScript fully formed and just need to be put into the DOM. But sometimes that isn't feasible or would require and extra round trip to the server which might be slow. In that case having the template right in JavaScript is ideal. …</p>