Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 72353 invoked from network); 12 Aug 2009 20:08:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 20:08:28 -0000 Received: (qmail 21492 invoked by uid 500); 12 Aug 2009 20:08:34 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 21441 invoked by uid 500); 12 Aug 2009 20:08:34 -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 21430 invoked by uid 99); 12 Aug 2009 20:08:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 20:08:34 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 20:08:23 +0000 Received: from [10.0.1.3] (i5387AB1B.versanet.de [::ffff:83.135.171.27]) (AUTH: LOGIN jan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Wed, 12 Aug 2009 20:08:01 +0000 Message-Id: From: Jan Lehnardt To: user@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: spidermonkey load function Date: Wed, 12 Aug 2009 22:07:58 +0200 References: X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org On 12 Aug 2009, at 21:08, Norman Barker wrote: > Hi, > > I have been looking at the SpiderMonkey shell and the custom couchdb > javascript driver and see that the couchdb driver does not allow the > load(filename) function which is allowed in the shell, is this > intentional? We don't want users to load extra files in their view code :) > I am looking to add functions to main.js without having to paste them > into one file and load() would have been a way around this. The > alternative is to implement a pre-processor to create one file before > deployment which I will use for now. CouchApp* is that preprocessor: http://github.com/couchapp/couchapp/tree/master Cheers Jan --