1 | # Mainstay
|
2 | The definition of Mainstay : a person or thing that acts as a chief support or part. ( [dictonary.com](http://dictionary.reference.com/browse/mainstay) )
|
3 | This 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
|
7 | npm install mainstay
|
8 | ```
|
9 |
|
10 | ### Usage
|
11 |
|
12 | ```js
|
13 | var mainstay = require('mainstay');
|
14 | var DataStoar = require('data-stoar');
|
15 |
|
16 | // Componets found by the data store
|
17 | var pageComponents = new DataStoar();
|
18 | // Object of components that are included in client library
|
19 | var clientlibraryComponents = { 'component-name' : require('component-name') };
|
20 |
|
21 | mainstay( pageComponents , clientlibraryComponents );
|
22 |
|
23 | ```
|