cleaned up template helpers

This commit is contained in:
kay.one 2013-06-24 21:43:16 -07:00
commit 8841e43c25
17 changed files with 78 additions and 88 deletions

View file

@ -0,0 +1,10 @@
'use strict';
define(
[
'handlebars',
'Shared/FormatHelpers'
], function (Handlebars, FormatHelpers) {
Handlebars.registerHelper('Bytes', function (size) {
return new Handlebars.SafeString(FormatHelpers.Bytes(size));
});
});