is-assemble-partial-exist
v0.0.4
Published
Check if the partial is found in the partial directories
Downloads
4
Readme
is-assemble-partial-exist
Check if the assemble partial is found in the partial directories
Install
$ npm i --save is-assemble-partial-exist
Usage
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'
};
License
MIT