biofriction-wp-theme/node_modules/panini/lib/loadBuiltinHelpers.js

10 lines
405 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
/**
* Adds built-in helpers to Panini's internal Handlebars instance.
*/
module.exports = function() {
this.Handlebars.registerHelper('ifequal', require('../helpers/ifEqual'));
this.Handlebars.registerHelper('markdown', require('../helpers/markdown'));
this.Handlebars.registerHelper('repeat', require('../helpers/repeat'));
this.Handlebars.registerHelper('code', require('../helpers/code'));
}