Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7828077E7 for ; Tue, 4 Oct 2011 06:59:43 +0000 (UTC) Received: (qmail 47423 invoked by uid 500); 4 Oct 2011 06:59:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 47379 invoked by uid 500); 4 Oct 2011 06:59:41 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 47369 invoked by uid 99); 4 Oct 2011 06:59:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 06:59:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 06:59:32 +0000 Received: by vcbf11 with SMTP id f11so163230vcb.11 for ; Mon, 03 Oct 2011 23:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=GFol1Vn6/8PcAOZ0TUE6DDqbpOSYZZ/XVQKo/+sYR/g=; b=g/AIlhzgsjIxagbNfRKe0OFFaaLzWHqU1z/i6gt/DiCI81VrClSzkWeiXCxorc6pEh ZoZ1pcaihVx0j7o3UFbw0qcL+dcDB8xmMRUjPEjDqAQuny1Zubcdb5msl/eR6YV5Q8yQ jUTpUdo0hT0Khf4rkzy4uSNXA2KVFd2Xb91xQ= Received: by 10.52.24.240 with SMTP id x16mr849018vdf.113.1317711552075; Mon, 03 Oct 2011 23:59:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.73.134 with HTTP; Mon, 3 Oct 2011 23:58:32 -0700 (PDT) In-Reply-To: <4E8AA900.30900@gmail.com> References: <4E8AA900.30900@gmail.com> From: Paul Davis Date: Tue, 4 Oct 2011 01:58:32 -0500 Message-ID: Subject: Re: Emiting a Doc from Erlang View To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2011/10/4 Damian Dobroczy=C5=84ski : > W dniu 03.10.2011 02:52, Thomas Van de Velde pisze: >> Hi, >> >> How can I emit the document as part of an Erlang view? Emit(Something,*D= oc*) >> doesn't work. >> >> Is there a good sample app or set of unit tests to look though? I looked= at >> the test that ships with Futon but it doesn't show this. >> >> Thanks! >> >> Thomas >> > > Still, nobody's answered this question ... :D > So, is it possible at all? > > -- D. > > Of course. Pretty sure answered in a separate thread related to this. Answer: Same as in JavaScript. Just emit it.