Permalink
Browse files

Render partials for items

  • Loading branch information...
1 parent 2805249 commit e4af2c06e9cb2843a8e6a1a3514ec363f092ae9e @quirkey quirkey committed Oct 10, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 javascripts/json_store.js
@@ -10,7 +10,9 @@
dataType: 'json',
success: function(items) {
$.each(items, function(i, item) {
- context.log(item.title, '-', item.artist);
+ context.partial('templates/item.template', {item: item}, function(rendered) {
+ context.$element().append(rendered);
+ });
});
}
});

0 comments on commit e4af2c0

Please sign in to comment.