Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 63157 invoked from network); 16 Aug 2010 16:05:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 16:05:29 -0000 Received: (qmail 93107 invoked by uid 500); 16 Aug 2010 16:05:28 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 92873 invoked by uid 500); 16 Aug 2010 16:05:27 -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 92864 invoked by uid 99); 16 Aug 2010 16:05:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 16:05:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of michael.lenahan@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qw0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 16:05:20 +0000 Received: by qwj8 with SMTP id 8so6852868qwj.11 for ; Mon, 16 Aug 2010 09:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=asiMG+YxTfrJHyhvrpqE9HQpl3W5eHAcz4uHLkO4An0=; b=U+buD83dDBE2JG7XuYbrwFvjYb2r8+RFm9iIiWFwwe8n6bzcQuWISw3nl9rVxN/3Li mWFrZR2FmgaMUBx4A+VkiUbPmqQ/i6QLfMZN6zxBUBpOH/Y7jtgE2DDzfSZuH+MIMu+X rHbjbmbpqicCIjMc5em35Ajl/fGj70fKr2zd8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=bGzTg+PdJgRBsv+L4gcXiB1GAWtjilxLpV9TfeEYxQy2+0NhvNBGkyr9Ln3AVN9UL2 vesWzriuExk+DTG86g9O845NcY2C1Y61G/Pi4m29qBK8DvYSmfbivw66ahrqTcJM0v3/ tm4+8Ut+s7BFCUyOyJaZhh3Zuwb7Q/0pJZQks= Received: by 10.229.1.193 with SMTP id 1mr130417qcg.290.1281974699156; Mon, 16 Aug 2010 09:04:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.6.15 with HTTP; Mon, 16 Aug 2010 09:04:39 -0700 (PDT) From: Michael Lenahan Date: Mon, 16 Aug 2010 17:04:39 +0100 Message-ID: Subject: Mustache? CommonJS? To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016e64c3a188de42e048df2fedf X-Virus-Checked: Checked by ClamAV on apache.org --0016e64c3a188de42e048df2fedf Content-Type: text/plain; charset=ISO-8859-1 Hi everyone I'm trying to get my head around CouchApp, by going back to first principles and trying to write an application for myself *without* CouchApp - just so as I can understand the building blocks that CouchDB itself provides. I wrote this blog piece to try to explain some of it to myself. http://klena02.wordpress.com/2010/08/16/three-steps-to-couchdb-heaven/ I got as far as this: http://mick.couchone.com/universities/_design/default/_list/defaultlist/defaultview Ultimately I want to serve a georss feed of all the locations. I achieved something similar before using couchapp + sofa, but now I'm trying to do just out of CouchDB itself, as a learning exercise. Here are some questions I have: 1. I wasn't able to work out how templating languages like mustache fit in. Are there any ways to use mustache inside a "show" to make authoring the show more easy? For example if you see the googlemap show in this design document: , I'd like to use a templating language to add doc.latitude and doc.longitude to the show. I read this: http://blog.couch.io/post/622014913/mustache-js but I'm still missing how to fit it in to a CouchDB show. 2. What is CommonJS and why does it matter. I worked through the example here http://wiki.apache.org/couchdb/CommonJS_Modules but I can't make practical sense of it. Thanks for your help. Michael --0016e64c3a188de42e048df2fedf--