fluid-component
v0.1.21
Published
Helper class for creation fluid-component
Downloads
15
Maintainers
Readme
fluid-component
A helper class for creating pluggable components.
Installation
npm install fluid-component --save
Getting stared
- sample-component.js
var FluidComponent = require('fluid-component');
module.exports = FluidComponent.component('SomeComponent', {
handler: function (source, local, scope, context) {
}
});
- index.js
var sampleComponent = require('./sample-component.js');
sampleComponent.execute(function(err){
//error
},
funciton(){
// done
});