#127: Basics of JavaScript Templating

published 6 years ago by Chris Coyier

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. … Read article

more episodes from CSS-Tricks Screencasts