UNPKG

389 BJavaScriptView Raw
1'use strict';
2
3const getFonts = require('../lib/fonts');
4
5module.exports = function(paper) {
6 const handlebars = paper.handlebars;
7
8 handlebars.registerHelper('getFontsCollection', function (options) {
9 const fontDisplay = options && options.hash['font-display'] ? options.hash['font-display'] : null;
10 return getFonts(paper, 'linkElements', {fontDisplay});
11 });
12};