macos-defaults/build/production/handlebars-helpers.js

8 lines
233 B
JavaScript
Raw Normal View History

const Handlebars = require('handlebars')
const slugify = require('slugify')
Handlebars.registerHelper('metaTag', (string) => {
return JSON.stringify(string.replace(/"/g, '"'))
})
Handlebars.registerHelper('slugify', slugify)