Skip to content

Instantly share code, notes, and snippets.

@joepie91
Created December 14, 2016 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joepie91/14461c1bc4c72d3591f7edea01ceb72e to your computer and use it in GitHub Desktop.
Save joepie91/14461c1bc4c72d3591f7edea01ceb72e to your computer and use it in GitHub Desktop.
var resultTemplate = "" +
" <ul class='searchList'>" +
" <% _.each(paymentActions,function(paymentActivity){ %>" +
" <li><span class='amount visible-phone'>-<%= paymentActivity.grossAmount %></span>" +
" </li>" +
" <% }); %>" +
" </ul>";
var template = _.template(resultTemplate, {
paymentActions: jsonData
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment