Quick Tip: Working with the Official jQuery Templating Plugin

Just this week, the jQuery team announced that Microsoft's templating plugin (along with a couple others) is now being officially supported. What this means is that the plugin will now be maintained and updated directly by the core team. In this video tutorial, we'll review the essentials of the plugin, and why it's so awesome.

As a quick example, we'll, again, refer to the Twitter search API example from Friday (think Bieber). The only difference is that, this time, we'll use an HTML template to attach the returned data, rather than muddying up our JavaScript!

Refer to the screencast for a full walk-through of the code above. Most importantly, though, is that we're creating an array of objects. This will then serve as the data for the the template that we created in step two. Notice how the property names: