use
use copied to clipboard
resolves #2 and #4 (bullets 4 and 5 of #4)
ref #2 and #4, and also switch assert.equal
to assert.strictEqual
(sorry, habit)
So, the whole thing around is control.
- Control arguments of the "top-level" plugins, these that firstly are passed directly to
.use
- Control arguments of the "smart" (?) plugins, these that
.run
runs
Examples
var app = {}
use(app, {
params: ['foo', 123]
})
app.use(function instantPlugin(str, num) {
console.log(foo, bar) //=> foo, 123
return function pluginTwo(aa, bb) {
console.log(aa, bb) //=> 111, 222
}
})
app.run(111, 222)
ping for thoughts on comments? To move forward. Just always comes to that I need multiple arguments. :D
Hey sorry! I'm working on a deadline but will review ASAP.
Yea, okey, no problems! :)