couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <robert.new...@gmail.com>
Subject Re: Custom / Global view functions?
Date Fri, 16 Jul 2010 16:21:42 GMT
CouchApp has !code and !json macros to aid view code reuse. View
functions are required to be self-contained.

http://github.com/couchapp/couchapp

B.

On Fri, Jul 16, 2010 at 12:10 PM, A.J. Brown <aj@ajbrown.org> wrote:
> Hello fellow CouchDBians,
>
> Is there any method for writing functions which can be accessed by any
> of my views?  Quite a few of my views require the same functionality
> to filter documents or parse certain fields, and it would be a shame
> to have to maintain that code in every single view.
>
> --
> A.J. Brown
> Software Engineer, ZCE
> blog : http://ajbrown.org
> talk  : (937) 540-0099
> chat : IntypicaAJ
>

Mime
View raw message