layout-stack

Create a layout stack based on the given layout templates.

2 个版本
安装
npm install layout-stack
yarn add layout-stack
pnpm add layout-stack
bun add layout-stack
README

layout-stack NPM version

Create a layout stack based on the given layout templates.

Install

Install with npm

npm i layout-stack --save

Run tests

npm test

Usage

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

API

.createStack

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.
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

Author

Brian Woodward

License

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


This file was generated by verb on November 18, 2014.

版本列表
0.1.1 2014-11-18
0.1.0 2014-11-18