get-assemble-partial-dirs
v0.0.3
Published
Get assemble partial directories
Downloads
6
Readme
get-assemble-partial-dirs
Get assemble partial directories
Install
$ npm i --save get-assemble-partial-dirs
Usage
In assemble plugin:
var getPartialDirs = require('get-assemble-partial-dirs');
module.exports = function (params, cb) {
getPartialDirs(params, function (err, data) {
console.log(data);
// => [ 'src/partials', 'src/sub-partials', ... ]
cb();
});
};
module.exports.options = {
stage: 'render:post:pages'
};
License
MIT