Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B74E7197 for ; Wed, 20 Jul 2011 21:27:22 +0000 (UTC) Received: (qmail 22759 invoked by uid 500); 20 Jul 2011 21:27:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 22720 invoked by uid 500); 20 Jul 2011 21:27:20 -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 22711 invoked by uid 99); 20 Jul 2011 21:27:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 21:27:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sean.copenhaver@gmail.com designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vw0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 21:27:13 +0000 Received: by vws16 with SMTP id 16so716749vws.11 for ; Wed, 20 Jul 2011 14:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=EKRGY9d7nqHA496RhOrVB5wRR1ZG4q34QsQPbsm9DfQ=; b=FglF8cIrMfZDaIzKjrZ3Ou/U5+75M7UZk2q58gxAWg0qPGQpfeWlAvkplOY1Kng3+C 28pUOrHg7xrloWd+eQs13x9mfIMvr24TWmwOFzbOdcgG1FPOEknwKcbItFahyoNF6O24 mYVUEvt9jYPE9EMx/H5eEBKiCGNX+NGlPbpmI= MIME-Version: 1.0 Received: by 10.52.73.103 with SMTP id k7mr1898957vdv.210.1311197212400; Wed, 20 Jul 2011 14:26:52 -0700 (PDT) Received: by 10.52.111.40 with HTTP; Wed, 20 Jul 2011 14:26:52 -0700 (PDT) In-Reply-To: <4E27462B.8000703@orgmeta.com> References: <4E27462B.8000703@orgmeta.com> Date: Wed, 20 Jul 2011 17:26:52 -0400 Message-ID: Subject: Re: accessing common data within show function From: Sean Copenhaver To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=bcaec501c58c135af104a886e475 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec501c58c135af104a886e475 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Is this data that is constantly changing and would not be present in the document being transformed? Or is this static data? On Wed, Jul 20, 2011 at 5:18 PM, Vivek Pathak wrote: > Hi > > I would like access common data within my show functions. What I need is > very much like accessing common code using the require() function as show= n > here: http://wiki.apache.org/**couchdb/CommonJS_Modules. > Instead of accessing code, I would like to assign the common data to a > local js variable. > > Is there a simple way to do it? > > Thanks > Vivek Pathak > --=20 =93The limits of language are the limits of one's world. =93 -Ludwig von Wittgenstein --bcaec501c58c135af104a886e475--