JsRender: Compile template from string, and register as named template
Data:
var person = {
firstName: "Jeff"
};
Script:
// Compile as named template
$.templates( "detailsTmpl", "<tr><td>{{>firstName}}</td></tr>" );
// Render to string
var html = $.render.detailsTmpl( person );
// Insert as HTML
$( "#details" ).html( html );