An open API service indexing awesome lists of open source software.

https://github.com/doowb/layout-stack

Create a layout stack based on the given layout templates.
https://github.com/doowb/layout-stack

Last synced: about 1 month ago
JSON representation

Create a layout stack based on the given layout templates.

Awesome Lists containing this project

README

        

# layout-stack [![NPM version](https://badge.fury.io/js/layout-stack.svg)](http://badge.fury.io/js/layout-stack)

> Create a layout stack based on the given layout templates.

## Install
### Install with [npm](npmjs.org)

```bash
npm i layout-stack --save
```

## Run tests

```bash
npm test
```

## Usage

```js
var stack = require('layout-stack');
```

## API
### [.createStack](index.js#L24)

Build a layout stack.

* `name` **{String}**: The name of the first layout to add to the stack.
* `layouts` **{Object}**: Possible layout templates tha could be used in the stack.
* `options` **{Object}**: Options to pass to `assertLayout`.
* `returns` **{Array}**: The layout stack starting with the given name.

```js
var stack = createStack('2-col-side-nav', layouts);
```

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/layout-stack/issues)

## Author

**Brian Woodward**

+ [github/doowb](https://github.com/doowb)
+ [twitter/doowb](http://twitter.com/doowb)

## License
Copyright (c) 2014 Brian Woodward
Released under the MIT license

***

_This file was generated by [verb](https://github.com/assemble/verb) on November 18, 2014._