Skip to content

Instantly share code, notes, and snippets.

@danielfilho
Created March 15, 2012 18:15
Show Gist options
  • Save danielfilho/2045784 to your computer and use it in GitHub Desktop.
Save danielfilho/2045784 to your computer and use it in GitHub Desktop.
Teste
var callResults = function(url, query, limit, offset){
var dataURL = url + query +'?limit='+ limit +"&offset="+ offset;
$.getJSON(dataURL, function(data){
var template = $('#TPL_searchResults').html(),
rendered = Mustache.to_html(template, data);
$('ul#searchTPLWrapper').html(rendered);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment