diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-12-19 23:46:25 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-12-19 23:46:25 +0100 |
commit | ce5ef8487d625bb30f17f84d80732a2baeede31b (patch) | |
tree | f7a4e8daaff7a8214b7a25548da4395d340482b8 /module/web/static/js/default.js | |
parent | separeted dashboard.less (diff) | |
download | pyload-ce5ef8487d625bb30f17f84d80732a2baeede31b.tar.xz |
added handlebars templates
Diffstat (limited to 'module/web/static/js/default.js')
-rw-r--r-- | module/web/static/js/default.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/module/web/static/js/default.js b/module/web/static/js/default.js index 8bd54cb25..389ebe9aa 100644 --- a/module/web/static/js/default.js +++ b/module/web/static/js/default.js @@ -16,11 +16,11 @@ require.config({ underscore: "libs/lodash-1.0.rc3", backbone: "libs/backbone-0.9.9", -// handlebars: "libs/Handlebars-1.0rc1", + handlebars: "libs/Handlebars-1.0rc1", // Plugins -// hbs: "plugins/hbs-2.0.1", - text: "plugins/text-2.0.3", + hbs: "libs/hbs-0.4.0", + text: "libs/text-2.0.3", tpl: "../../templates" }, @@ -38,17 +38,18 @@ require.config({ "transit": ["jquery"], "omniwindow": ["jquery"], "bootstrap": ["jquery"] - } // end Shim Configuration + }, // end Shim Configuration // Handlebar Configuration -// hbs : { -// templateExtension : 'hbs', -// disableI18n : true -// } + hbs: { + helperDirectory: 'helpers/', + templateExtension: 'html', + disableI18n: true + } }); define('default', ['jquery', 'backbone', 'routers/defaultRouter', 'views/headerView', 'views/packageTreeView', - 'utils/animations', 'bootstrap'], + 'utils/animations', 'bootstrap', 'helpers/formatSize'], function($, Backbone, DefaultRouter, HeaderView, TreeView) { var init = function() { |