find-assemble-partials
v0.0.6
Published
Find assemble partial names
Downloads
4
Readme
find-assemble-partials
Find assemble partial names
Install
$ npm i --save find-assemble-partials
Usage
var findPartials = require('find-assemble-partials');
fs.readFile('./src/layouts/default.hbs', 'utf8', function (err, data) {
findPartials(data, function (error, partials) {
if (error) {
throw error;
}
console.log(partials);
// => [ 'header', 'footer', ... ]
});
});
License
MIT