A very common, intuitive question. Use CouchApp* and please take a look at the mailing list archives for more explanation as to why you must duplicate code between views, why you can't share state, etc:
http://couchdb.markmail.org/message/zndbojofdjy6kcpn?q=view+share http://couchdb.markmail.org/message/kdgkyaj2wsqckwe6?q=view+share http://couchdb.markmail.org/message/2gixuri5rriep4fu?q=view+share * http://github.com/couchapp/couchapp I will add a note about this to the Wiki if it's not already there. -FB On Thu, Jun 4, 2009 at 4:17 AM, Peter Maas <[email protected]> wrote: > Hi, > > I wondered wether it is possible to load javascript which is accessible > from view on a global level. Say I have some useful date utilities, or array > functions... could I make them availlable to all my views (with resorting to > couchapp templates)? > > kind regards, > > -P >
