2013-06-25 04:43:16 +00:00
|
|
|
'use strict';
|
|
|
|
define(
|
|
|
|
[
|
|
|
|
'handlebars',
|
|
|
|
'Shared/FormatHelpers'
|
|
|
|
], function (Handlebars, FormatHelpers) {
|
|
|
|
Handlebars.registerHelper('Bytes', function (size) {
|
|
|
|
return new Handlebars.SafeString(FormatHelpers.Bytes(size));
|
|
|
|
});
|
2013-07-17 00:41:04 +00:00
|
|
|
|
|
|
|
Handlebars.registerHelper('Pad2', function (input) {
|
2013-07-17 06:23:44 +00:00
|
|
|
return FormatHelpers.pad(input, 2);
|
2013-07-17 00:41:04 +00:00
|
|
|
});
|
2013-07-17 06:23:44 +00:00
|
|
|
|
2013-06-25 04:43:16 +00:00
|
|
|
});
|