mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
14 lines
417 B
JavaScript
14 lines
417 B
JavaScript
var Handlebars = require('handlebars');
|
|
var FormatHelpers = require('../../Shared/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);
|
|
});
|