Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var items = ...;
- var item_template = _template('<li class="song-<%= id %>"><%= title %> by <%= artist %></li>');
- var html = '';
- items.each(function(item){
- html += item_template(item);
- });
- $('body').html(html);
Add Comment
Please, Sign In to add comment