Generic views for wrapping CouchDB output