Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 51974 invoked from network); 4 Jun 2009 14:07:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jun 2009 14:07:56 -0000 Received: (qmail 52203 invoked by uid 500); 4 Jun 2009 13:55:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 52180 invoked by uid 500); 4 Jun 2009 13:55:03 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 52169 invoked by uid 99); 4 Jun 2009 13:55:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2009 13:55:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of frederick.bowen@gmail.com designates 74.125.92.27 as permitted sender) Received: from [74.125.92.27] (HELO qw-out-2122.google.com) (74.125.92.27) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2009 13:54:51 +0000 Received: by qw-out-2122.google.com with SMTP id 5so455053qwd.29 for ; Thu, 04 Jun 2009 06:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=we0q+kmpcrNXgMrMEfyVc5LryMSqAMEgkV0ZwYNlAfM=; b=xGLlk6VWAanKfFxR1laxW4JYKc+JYZaxVZSPGFwI6lp4cI/B0eNX2uDIr2cZ9kKo9j fLBV33BlAx2XfMTRqVqfZG36nUhf88w6Q0dCw5a5EheGe+Y3qm3O53qSBHvwiPJ3akqW i4DjorYgWapWIARXMjpZV7ZRfUL207wPsZTdU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=RFe05s/BfYM0gsjvG5C3VaIKdSvyt86wTFix5LE4wIj1JK7SuVz5hSupPXLKo+1CIu tWn7uZrZsgSyYm2RLMNY0+N4RrPyhl3G/0pWkr3o3v9ruN6p4aUkzDRiTOrvd6XMeAEt phoN73fuBw4YN/8JfCqfY9Hx658vP8jHE1758= MIME-Version: 1.0 Received: by 10.151.124.6 with SMTP id b6mr3598704ybn.219.1244123670295; Thu, 04 Jun 2009 06:54:30 -0700 (PDT) In-Reply-To: <7C3242C0-CCF4-4778-A781-E0BA759F0CB6@gmail.com> References: <7C3242C0-CCF4-4778-A781-E0BA759F0CB6@gmail.com> Date: Thu, 4 Jun 2009 09:54:30 -0400 Message-ID: <634e096f0906040654x4b2521ecp1f2ba81a78905570@mail.gmail.com> Subject: Re: add javascript 'classpath' for javascript viewserver From: Fred Bowen To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001e680f1c106cb407046b861dd8 X-Virus-Checked: Checked by ClamAV on apache.org --001e680f1c106cb407046b861dd8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 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 > --001e680f1c106cb407046b861dd8--