chain many config sources #2

Open
dominictarr opened this Issue Aug 20, 2011 · 0 comments

Projects

None yet

1 participant

@dominictarr

some times we're loading files from multiple config files. (i.e, in morbo)

also some times it's desirable to use absolute paths.

I propose this:

 reconf(conf1, conf2, conf3,...) // call with list of configurations, earlier options override later options

each will be loaded:

if it's a relative path file, recursively search for it.

if it's an absolute path just load it

if it's an object just use it...

what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment