macos-defaults/build/handlebars-helpers.js
2022-08-18 11:08:08 +02:00

8 lines
No EOL
233 B
JavaScript

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