From user-return-2335-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Dec 23 00:35:05 2008 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 28142 invoked from network); 23 Dec 2008 00:35:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Dec 2008 00:35:05 -0000 Received: (qmail 36450 invoked by uid 500); 23 Dec 2008 00:35:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 36093 invoked by uid 500); 23 Dec 2008 00:35:03 -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 36082 invoked by uid 99); 23 Dec 2008 00:35:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2008 16:35:03 -0800 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.198.228] (HELO rv-out-0506.google.com) (209.85.198.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2008 00:34:53 +0000 Received: by rv-out-0506.google.com with SMTP id g37so2220688rvb.35 for ; Mon, 22 Dec 2008 16:34:32 -0800 (PST) Received: by 10.115.16.14 with SMTP id t14mr4398152wai.34.1229992472379; Mon, 22 Dec 2008 16:34:32 -0800 (PST) Received: by 10.114.14.13 with HTTP; Mon, 22 Dec 2008 16:34:32 -0800 (PST) Message-ID: <64a10fff0812221634q3b23714ck95cd69629d511391@mail.gmail.com> Date: Mon, 22 Dec 2008 19:34:32 -0500 From: "Dean Landolt" To: user@couchdb.apache.org Subject: Re: constraining couchdb to reject empty docs In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_73090_32441712.1229992472369" References: <4c69d7170812211356n6678400fg1ffabc96263282f4@mail.gmail.com> <4c69d7170812211434l2e8a5673p21e4c8839534ed8c@mail.gmail.com> <64a10fff0812211708x2b277a1cv1a13062063602bac@mail.gmail.com> <64a10fff0812221539q236bdf52v64ab86f4f973cfa8@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_73090_32441712.1229992472369 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Dec 22, 2008 at 6:46 PM, Chris Anderson wrote: > On Mon, Dec 22, 2008 at 3:39 PM, Dean Landolt > wrote: > > > > Any progress on the templating? Have you pushed your new main.js to a > public > > repo yet? I'm pretty excited to start playing around with this -- I've > been > > waiting for such a feature since I first read about action servers. I > tried > > to roll the trimpath JST stuff into main.js and generate via action > servers > > but was never successful. I've since done some digging and understand the > > req object a little better so I was going to have another go, but I'm > > probably better off waiting for this implementation. > > > > Glad you asked. I just posted to github last night: > > http://github.com/jchris/couchdb/tree/templates > > ymmv, I've got the tests I've written passing, but will be writing > more tests today. I'll try to keep github up to date and working. Sweet! Though I'm having trouble getting the tests up. All the js is loading alright, but no tests are appearing in the runner... see couch_tests.js for "templates" -- although I think "form" maybe a > better name for them. Why's that? From looking at couch_tests.js source I can see you're using db/_form as the entry point. Out of curiosity, why the name form rather than template or something else? Form just seems like such an overloaded word (perhaps the same could be said for template as well). ------=_Part_73090_32441712.1229992472369--