I would make your own .js file that includes your libraries and main.js, then add that as a custom view server in local.ini. Then upgrades won't break it. That's elegant enough for me.

Anthony Eden wrote:
What is the best way to add JavaScript libraries to CouchDB so that
they may be used in JavaScript views?

I was thinking of somehow adding libraries to
/usr/local/share/couchdb/server/main.js however I'm reluctant to just
jump straight into doing this since it seems like a brute force way to
solve a problem that must be better accomplished with a more elegant
solution.

Any suggestions?

Thanks!

Sincerely,
Anthony Eden

Reply via email to