Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makotot/get-assemble-pages
Get assemble page files
https://github.com/makotot/get-assemble-pages
Last synced: 28 days ago
JSON representation
Get assemble page files
- Host: GitHub
- URL: https://github.com/makotot/get-assemble-pages
- Owner: makotot
- Created: 2015-09-11T03:06:48.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-30T00:51:50.000Z (about 9 years ago)
- Last Synced: 2024-10-16T00:33:43.313Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/get-assemble-pages
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-assemble-pages
[![npm version](http://img.shields.io/npm/v/get-assemble-pages.svg?style=flat-square)](https://github.com/makotot/get-assemble-pages)
[![travis](http://img.shields.io/travis/makotot/get-assemble-pages.svg?style=flat-square)](https://github.com/makotot/get-assemble-pages)
[![dependencies](http://img.shields.io/david/makotot/get-assemble-pages.svg?style=flat-square)](https://github.com/makotot/get-assemble-pages)
[![devDependencies](http://img.shields.io/david/dev/makotot/get-assemble-pages.svg?style=flat-square)](https://github.com/makotot/get-assemble-pages)
[![License](http://img.shields.io/npm/l/get-assemble-pages.svg?style=flat-square)](https://github.com/makotot/get-assemble-pages)> Get [assemble](http://assemble.io/) page files.
## Install
```sh
$ npm i --save get-assemble-pages
```## Usage
In assemble plugin:
```js
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