Check if the assemble partial is found in the partial directories
$ npm i --save is-assemble-partial-exist
In assemble plugin:
var isPartialExist = require('is-assemble-partial-exist');
module.exports = function (params, cb) {
isPartialExist(params, 'header', function (err, data) {
console.log(data);
// => true
cb();
});
};
module.exports.options = {
stage: 'render:post:pages'
};
MIT