incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jedediah Smith <jeded...@silencegreys.com>
Subject Re: Adding JS Libraries for Views?
Date Thu, 20 Nov 2008 14:03:48 GMT

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
> 

Mime
View raw message