get-assemble-pages
v0.0.4
Published
get assemble page files
Downloads
5
Readme
get-assemble-pages
Get assemble page files.
Install
$ npm i --save get-assemble-pages
Usage
In assemble plugin:
var getPages = require('get-assemble-pages');
module.exports = function (params, cb) {
getPages(params, function (err, data) {
console.log(data);
// => [ 'src/pages/docs.hbs',
'src/pages/example.hbs',
'src/pages/index.hbs',
... ]
cb();
});
};
module.exports.options = {
stage: 'render:post:pages'
};
License
MIT