Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makotot/get-assemble-layouts
Get assemble layout files.
https://github.com/makotot/get-assemble-layouts
Last synced: 27 days ago
JSON representation
Get assemble layout files.
- Host: GitHub
- URL: https://github.com/makotot/get-assemble-layouts
- Owner: makotot
- Created: 2015-09-11T02:05:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-30T02:18:12.000Z (about 9 years ago)
- Last Synced: 2024-10-11T02:22:56.980Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/get-assemble-layouts
- Size: 152 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-assemble-layouts
[![npm version](http://img.shields.io/npm/v/get-assemble-layouts.svg?style=flat-square)](https://github.com/makotot/get-assemble-layouts)
[![travis](http://img.shields.io/travis/makotot/get-assemble-layouts.svg?style=flat-square)](https://github.com/makotot/get-assemble-layouts)
[![dependencies](http://img.shields.io/david/makotot/get-assemble-layouts.svg?style=flat-square)](https://github.com/makotot/get-assemble-layouts)
[![devDependencies](http://img.shields.io/david/dev/makotot/get-assemble-layouts.svg?style=flat-square)](https://github.com/makotot/get-assemble-layouts)
[![License](http://img.shields.io/npm/l/get-assemble-layouts.svg?style=flat-square)](https://github.com/makotot/get-assemble-layouts)> Get [assemble](http://assemble.io/) layout files.
## Install
```sh
$ npm i --save get-assemble-layouts
```## Usage
In assemble plugin:
```js
var getLayouts = require('get-assemble-layouts');module.exports = function (params, cb) {
getLayouts(params, function (err, data) {
console.log(data);
// => [ 'src/layouts/docs.hbs', 'src/layouts/default.hbs', ... ]
cb();
});
};module.exports.options = {
stage: 'render:post:pages'
};
```## License
MIT