From ce5ef8487d625bb30f17f84d80732a2baeede31b Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 19 Dec 2012 23:46:25 +0100 Subject: added handlebars templates --- module/web/static/js/views/fileView.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/web/static/js/views/fileView.js') diff --git a/module/web/static/js/views/fileView.js b/module/web/static/js/views/fileView.js index 1c96c61e2..85b40a413 100644 --- a/module/web/static/js/views/fileView.js +++ b/module/web/static/js/views/fileView.js @@ -1,11 +1,12 @@ -define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { +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: _.template($("#template-file").html()), + template: HB.compile($("#template-file").html()), events: { }, -- cgit v1.2.3