couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Roebuck <paul_roeb...@comcast.net>
Subject [HELP] Share vendor directory with multi-design documents?
Date Fri, 09 Mar 2012 13:34:12 GMT
I have a multi-design document setup. I can make this work moving the vendor
directory under each design document. But I don't really want to manage
multiple copies of library javascript code per design document. Please enlighten
me on how this can be shared from the master design.

Simple example for shows using mustache:

Current:
xxx
   _design/master
   _design/foo
       show
           this
       vendor
          couchdb
               lib
                   mustache
   _design/bar
       show
           that
       vendor
          couchdb
               lib
                   mustache


Desired:
xxx
   _design/master
       vendor
          couchdb
               lib
                   mustache
   _design/foo
       show
           this
   _design/bar
       show
           that


How does one design document "reference" another as such (via require())?


Mime
View raw message