I feel really stupid, but I can\'t figure this out. I\'m trying out Handlebars.js, but I can\'t get it to display data from the Twitter API. Here\'s what I\'ve got:
You have to convert string into object, because Handlebar template wrap only object.
Try this
success : function( tweets ) {
var source = $('#tweet-template').html();
var template = Handlebars.compile(source);
var context = $.parseJSON(tweets); // convert string into object.
$('#container').html(template(context)); //wrap in an Object.
}