Useful for learning the basics of Backbone.js using Handlebars as the templating engine.
For reference, the syntax for an Handlebars template script tag is:
<script id="todoItemTemplate" type="text/x-handlebars-template">
<label>
{{#if completed}}
<input type="checkbox" checked >
{{else}}
<input type="checkbox" >
{{/if}}
{{title}}
</label>
<button id="delete">Delete</button>
</script>
An example of fetching a Handlebars template, compiling, and merging with a model is:
var source = $('#todoItemTemplate').html();
var template = Handlebars.compile(source);
var html = template(this.model.toJSON());