UNPKG

783 BMarkdownView Raw
1# Mainstay
2The definition of Mainstay : a person or thing that acts as a chief support or part. ( [dictonary.com](http://dictionary.reference.com/browse/mainstay) )
3This module is ment to be the middle piece that links a component that is in a client library built with [Iron(Fe)](https://github.com/jzeltman/iron) and your AEM authored componets.
4
5### Install Mainstay
6```node
7npm install mainstay
8```
9
10### Usage
11
12```js
13var mainstay = require('mainstay');
14var DataStoar = require('data-stoar');
15
16// Componets found by the data store
17var pageComponents = new DataStoar();
18// Object of components that are included in client library
19var clientlibraryComponents = { 'component-name' : require('component-name') };
20
21mainstay( pageComponents , clientlibraryComponents );
22
23```