incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Rampelberg <>
Subject require() from within views
Date Fri, 14 Jan 2011 21:54:22 GMT
Decided to give trunk a try so that I could play with require() from
within views today and I've ran into a couple issues.

- It appears that views are sandboxed to a very small section of the
design doc (views/lib/*). Why is this?
- For a reason that I've not been able to figure out, module.exports
doesn't work for functions. eg: = "asdf"

Produces {"foo": "asdf" } but: = function() {}

Produces { }

Any ideas?

View raw message