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 32F339E33 for ; Fri, 9 Mar 2012 17:01:18 +0000 (UTC) Received: (qmail 91924 invoked by uid 500); 9 Mar 2012 17:01:16 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 91881 invoked by uid 500); 9 Mar 2012 17:01:16 -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 91873 invoked by uid 99); 9 Mar 2012 17:01:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 17:01:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-lpp01m010-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 17:01:08 +0000 Received: by lahi5 with SMTP id i5so2502718lah.11 for ; Fri, 09 Mar 2012 09:00:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Q36UPsVopv/CPR/UxG4hqiTHDi0ILv+gpG8plmEG6Bw=; b=rLToVdDW1OG6Cs7AtRJzjqPGl1oh9FaYQYHJe8AkbwoYr39HYuFhHUbeO+L0PVm12z Oei0BYh2psLy6M80gdKxViw1Jfyj+I/7Ek/HaAHmJkFoMPG5t3zODqEuoZ3zDIof/nx3 vtKKPYc/qGgk+GtqJqtcdO73CuDEEX/nKA7FRZqso1EvZmxxpsV8xxePC6mANsPx5qID GN1NWu3tRz88UboGFS22BVqKCal8bEGq1LREOg3c7ZaSAKIPM6wPLs1By8Bl9ZMQw0HX wQWjHiEhI2clfARX0jGmNQNspndPqoK0bPYGyUagSwi8j9626ofeHJJSK0frgkhMJYFU 4c6w== MIME-Version: 1.0 Received: by 10.152.132.104 with SMTP id ot8mr2205825lab.17.1331312448502; Fri, 09 Mar 2012 09:00:48 -0800 (PST) Received: by 10.112.85.65 with HTTP; Fri, 9 Mar 2012 09:00:48 -0800 (PST) In-Reply-To: References: <0DDFA2C5-4392-41FC-84C7-F2DDAD194F41@comcast.net> Date: Fri, 9 Mar 2012 09:00:48 -0800 Message-ID: Subject: Re: [HELP] Share vendor directory with multi-design documents? From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Mar 9, 2012 at 5:34 AM, Paul Roebuck wro= te: > I have a multi-design document setup. I can make this work moving the ven= dor > directory under each design document. But I don't really want to manage > multiple copies of library javascript code per design document. Please en= lighten > me on how this can be shared from the master design. > > Simple example for shows using mustache: > > Current: > xxx > =A0 _design/master > =A0 _design/foo > =A0 =A0 =A0 show > =A0 =A0 =A0 =A0 =A0 this > =A0 =A0 =A0 vendor > =A0 =A0 =A0 =A0 =A0couchdb > =A0 =A0 =A0 =A0 =A0 =A0 =A0 lib > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mustache > =A0 _design/bar > =A0 =A0 =A0 show > =A0 =A0 =A0 =A0 =A0 that > =A0 =A0 =A0 vendor > =A0 =A0 =A0 =A0 =A0couchdb > =A0 =A0 =A0 =A0 =A0 =A0 =A0 lib > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mustache > > > Desired: > xxx > =A0 _design/master > =A0 =A0 =A0 vendor > =A0 =A0 =A0 =A0 =A0couchdb > =A0 =A0 =A0 =A0 =A0 =A0 =A0 lib > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mustache > =A0 _design/foo > =A0 =A0 =A0 show > =A0 =A0 =A0 =A0 =A0 this > =A0 _design/bar > =A0 =A0 =A0 show > =A0 =A0 =A0 =A0 =A0 that > > > How does one design document "reference" another as such (via require())? > `ln -s` should work on the filesystem . There is no possibility include libs from other docs at the server level for now. - beno=EEt