mirror of
https://github.com/yannbertrand/macos-defaults
synced 2024-12-15 14:12:30 +00:00
10 lines
274 B
JavaScript
10 lines
274 B
JavaScript
const Handlebars = require('handlebars')
|
|
const slugify = require('slugify')
|
|
|
|
Handlebars.registerHelper('metaTag', (string) => {
|
|
return JSON.stringify(string.replace(/"/g, '"'))
|
|
})
|
|
|
|
Handlebars.registerHelper('slugify', (string) =>
|
|
slugify(string, { lower: true })
|
|
)
|