Noah, It appears that we may be able to change the module load paths via the erl_prim_loader module. So having a config option that is has some list of plugin paths, and then having a standardized directory layout akin to what Antony described could be awesome.
Also, not sure if this is gonna get laughed at or not, but reading the docs on the erl_prim_laoder, it looks like it actually wouldn't be that hard to write a thing that could pull in erlang code from a document. Obviously there'd be some security issues to figure out, but how fucking cool would it be to replicate a design doc and not only have a web app, but add new functionality to the underlying server? I mean, that's one hell of a plugin system if you ask me. Also, that could be completely unfeasible and I'm just too tired to notice. Any other more coherent thoughts? Paul On Wed, Nov 5, 2008 at 11:29 PM, Noah Slater <[EMAIL PROTECTED]> wrote: > Hey, > > This is a nice idea, is there anyway to get Erlang to load modules directly > without having to modify the path in the CouchDB script? That seems like a > much > cleaner solution to me. With this you could either: > > * Add a configuration option that loaded a new configuration file > * Add new configuration files on the command line > > You would also need a way to load custom beam files from the configuration. > > Open to suggestions on this. > > Best, > > -- > Noah Slater, http://bytesexual.org/nslater >
