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