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 39799D285 for ; Thu, 27 Sep 2012 18:34:40 +0000 (UTC) Received: (qmail 56355 invoked by uid 500); 27 Sep 2012 18:34:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 56325 invoked by uid 500); 27 Sep 2012 18:34:38 -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 56316 invoked by uid 99); 27 Sep 2012 18:34:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 18:34:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of matthieu.rakotojaona@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 18:34:33 +0000 Received: by wgbdt10 with SMTP id dt10so1350660wgb.23 for ; Thu, 27 Sep 2012 11:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=lTPaw5deDSKdPVyMcKWATNNXAaF8vJ9VksVJx38rFiY=; b=CBaAhPTfNm9X53fWcqmCljfj5EOfZkk8U/TtDkDSGkv91tKkRe7nCSzadNP0GbvdY9 7NG/UwelgD+MIl5/vc7utH8jXCQANIvU5Lvu0EJEbWr0GLPXcDZcQ8gzlCmcGSWiap9q 01ytoee31UZezdrfJD9ZcXD2P1M5Rk84mNgUI/EVpbv/v3/XP3uqDQw493VUoxsL4HIg utHkdsvP3hPHvCaApj5QI8cg5B3wiIm1JeuhzDK0+oGmdCTqSIMteleEG0NfHIfARD+s t26Ebgad1JHVLZTHGn6ks1G2njG4siFupF7w6IV28nMHYUHSNFV43hHNWKReZIGXcGCl WciQ== Received: by 10.216.197.104 with SMTP id s82mr1836300wen.62.1348770852332; Thu, 27 Sep 2012 11:34:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.161.80 with HTTP; Thu, 27 Sep 2012 11:33:52 -0700 (PDT) In-Reply-To: <50649592.3070901@gmail.com> References: <506492EF.8070903@gmail.com> <50649592.3070901@gmail.com> From: Matthieu Rakotojaona Date: Thu, 27 Sep 2012 20:33:52 +0200 Message-ID: Subject: Re: HTML documentation within a couch application To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hello, This looks like a job for Mustache[1]. You could define a docs.html.mustache template somewhere in a non-replicated folder, and use couchapp's hooks[2] to render the template into a custom doc.html before effectively pushing it to couchdb. You would only need a simple config file that says what the hostname/proxy url is. I see in the hook function that you even have a `dbs` object filled with the dbs you're pushing to; this could be handy to you. [1] http://mustache.github.com/ [2] https://github.com/couchapp/couchapp/blob/master/doc/extends.md -- Matthieu RAKOTOJAONA