define(['jquery', 'backbone', 'underscore', 'handlebars'], function($, Backbone, _, HB) { // Renders single file item return Backbone.View.extend({ tagName: 'li', className: 'file-view', // template: _.template($("#template-file").html()), template: HB.compile($("#template-file").html()), events: { }, initialize: function() { }, render: function() { this.$el.html(this.template(this.model.toJSON())); return this; } }); });