I'm using couchdb 1.2.x, and I'm trying to use underscorejs
in a list, without success.
here is how I proceed:
function(head, req) {
var _ = require('vendor/underscore/underscore');
log(_);
}
By looking at the couchdb log, I can see that var _
is undefined. Also, underscorejs log says:
1.3.0 — Jan. 11, 2012
Removed AMD (RequireJS) support from Underscore. If you'd like to use Underscore with RequireJS, you can load it as a normal script, wrap or patch your copy, or download a forked version.
I'm not sure exactly how to proceed; any clues?
Thanks