It is static data. thanks, i already got it working by using the "this" object within show function (which points to the _design/<designname> object) . eg:

var html = this.common.html.<fld_name> ;





On 07/20/2011 05:26 PM, Sean Copenhaver wrote:
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<[email protected]>  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 shown
here:  
http://wiki.apache.org/**couchdb/CommonJS_Modules<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



Reply via email to