Return to Snippet

Revision: 43612
at March 28, 2011 01:30 by crypticsoft

Initial Code
$.when( $.getJSON('/some/data/'), $.get('template.tpl') ).then(function( data, tmpl ){

    $( tmpl ) // create a jQuery object out of the template
        .tmpl( data) // compile it
        .appendTo( "#target" ); // insert it into the DOM


Initial URL

Initial Description

Initial Title
Deferred with $.when help and template example

Initial Tags

Initial Language