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

10 lines
405 B
JavaScript

/**
* 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'));
}