Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / server / web / register-helpers.js
blob24457ab52e7f3a2cce11f18fb879f98dc66b67af
1 'use strict';
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);
11 });
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);