I've noticed that most flavours of couchapp tools include a feature avoid code duplication. The CouchDb guide shows that the original python couchapp used macros: - http://guide.couchdb.org/draft/show.html#json - http://guide.couchdb.org/draft/show.html#code Does your tool support this or some other DRY mechanism ?