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

12 lines
529 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
var path = require('path');
/**
* Initializes a Panini instance by setting up layouts and built-in helpers. If partials, helpers, or data were configured, those are set up as well. If layout, partial, helper, or data files ever change, this method can be called again to update the Handlebars instance.
*/
module.exports = function() {
this.loadLayouts(this.options.layouts);
this.loadPartials(this.options.partials || '!*');
this.loadHelpers(this.options.helpers || '!*');
this.loadData(this.options.data || '!*');
}