Baptiste
dependency injection electrolyte-driven module builder
Injection Example
components/a.js
exports = module{ return foo : "bar" }exports'@singleton' = false;
components/b.js
exports = module{ return a: a }exports'@require' = 'a';exports'@singleton' = true;
index.js
const path = ;const baptiste = ; var mdl = baptiste mdl;
Extend Example
Extension is useful if you want to use components from a first module (in real-life the module will be npm-git-package) into another module.
components2/c.js
module { return a ;};exports = moduleexports;exports'@require' = 'a';exports'@singleton' = true;
index.js
const path = ;const baptiste = ; const mdla = baptiste; const mdlb = baptiste; mdla;