Handlebars process



examples/handlebars/process_template.js
var source   = document.getElementById('text-template').innerHTML;
var template = Handlebars.compile(source);
var context = {first_name: fname, last_name: lname};
var html    = template(context);

jQuery


var source   = $('#text-template').html();