rjs -> webpack

This commit is contained in:
Keivan Beigi 2015-02-02 17:18:45 -08:00
parent 344f3d66ef
commit 428a1439e5
399 changed files with 11591 additions and 16139 deletions

View file

@ -1,19 +1,14 @@
'use strict';
define(
[
'handlebars',
'Shared/FormatHelpers'
], function (Handlebars, FormatHelpers) {
Handlebars.registerHelper('Bytes', function (size) {
return new Handlebars.SafeString(FormatHelpers.bytes(size));
});
Handlebars.registerHelper('Pad2', function (input) {
return FormatHelpers.pad(input, 2);
});
Handlebars.registerHelper('Number', function (input) {
return FormatHelpers.number(input);
});
var Handlebars = require('handlebars');
var FormatHelpers = require('../../Shared/FormatHelpers');
module.exports = (function(){
Handlebars.registerHelper('Bytes', function(size){
return new Handlebars.SafeString(FormatHelpers.bytes(size));
});
Handlebars.registerHelper('Pad2', function(input){
return FormatHelpers.pad(input, 2);
});
Handlebars.registerHelper('Number', function(input){
return FormatHelpers.number(input);
});
}).call(this);