couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <>
Subject Re: How do you access design_doc functions from a validation function?
Date Wed, 03 Oct 2012 21:11:07 GMT
Hey Marcus,

You can't access attachments from your validation function.

But what you could do is put it in the design doc and as an attachment
(if you still need it as an attachment). Then you can use commonjs to
access the js.

On Wed, Oct 3, 2012 at 2:39 PM, Wordit <> wrote:
> I need to access an external javascript function from the validation function.
> The function lives as an attachment in a design_doc. How do I include
> it so the validation function can access it?
> Many Thanks,
> Marcus

View raw message