1 | ;
|
2 |
|
3 | const getFonts = require('../lib/fonts');
|
4 |
|
5 | module.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 | };
|