如何将json数据循环到Mustache模板

am getting data by ajax in json format

$.ajax({

url:baseURL+"Trips/search_for_trip",
data:data,
type:'post',
dataType:'json',
success:function(data){


  var template = $("#trip-template").html();

  var info = Mustache.to_html(template,data);

 $("#all_trips").html(info);


}

});


this is my template

<script id="trip-template" type="text/template">

<li><strong>Title:</strong> {{first_name}}</li>


</script>

how can i loop through all the data in this template? i tried

{{#result}}

{{/result}}

but it didn't work for me