3 var hbsHelpers
= require('gitter-web-templates/lib/hbs-helpers');
4 var avatarImgSrcSetHbsHelper
= require('gitter-web-avatars/shared/avatar-img-srcset-hbs-helper');
6 module
.exports = function(hbs
) {
7 Object
.keys(hbsHelpers
).forEach(function(key
) {
8 var helper
= hbsHelpers
[key
];
9 if (typeof helper
!== 'function') return;
10 hbs
.registerHelper(key
, helper
);
13 hbs
.registerHelper('prerenderView', require('./prerender-helper'));
14 hbs
.registerHelper('chatItemPrerender', require('./prerender-chat-helper'));
15 hbs
.registerHelper('activityItemPrerender', require('./prerender-activity-helper'));
16 hbs
.registerHelper('widget', require('./widget-prerenderers').widget
);
17 hbs
.registerHelper('paginate', require('./paginate-helper'));
19 hbs
.registerHelper('avatarSrcSet', avatarImgSrcSetHbsHelper
);