c9 / architect

A simple yet powerful plugin system for large-scale node applications
MIT License
982 stars 129 forks source link

How can i pass extra options to a plugin from another plugin? #49

Open shaharmor opened 8 years ago

shaharmor commented 8 years ago

For example, i have a plugin that creates a database connection when given the hostname for the db server.

Now i want to have two connections to two different servers.

so from plugin1 i will consume database with hostname1 and from plugin2 i will consume database with hostname2

is it possible?

nightwing commented 8 years ago

Currently this isn't possible. Do you want to pass hostname1 to datebase from plugin1 or from the config file?