incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Batalha Cunha dos Santos <fabio.bata...@scielo.org>
Subject Mustache with _views _lists
Date Mon, 20 Dec 2010 16:34:05 GMT
Hello all!

I'm new with couchdb.

I'm trying to use the mustache.js instead of the template.js, but when I
include the mustache code in my _show function or _list function the
functions stop to work.

As you can see this is a simple show function that works fine without the
line:     // !code vendor/couchapp/lib/mustache.js

function(doc, req) {
    // !json templates.abstract
    // !code vendor/couchapp/lib/mustache.js


   return ("Test:"+doc.v12[0]["_"]);

}

If anybody have any idea about what could be wrong, blease help me.

Thanks,
*Fabio Batalha C. Santos*
Colegiado SciELO
www.scielo.org
FAPESP - CNPq - BIREME - FapUNIFESP

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message