Synopsis
Allows the Scatter IoC container to inject
configuration parameters. Internally it loads the config
module (by default) and invokes a
get
using the given config parameter.
Usage
Setup Scatter to use the plugin
var Scatter = ScatterPluginConfig = ; var scatter = plugins: ;
Config parameter as dependency
module { return { //do something with username } ;}; moduleexport__module = //inject a config parameter as dependency args: "config!db.username";
Stability
2 - Unstable
The API is in the process of settling, but has not yet had sufficient real-world testing to be considered stable.