couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabor Ratky (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-817) Natively support coffeescript
Date Sun, 29 May 2011 11:16:47 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040787#comment-13040787
] 

Gabor Ratky commented on COUCHDB-817:
-------------------------------------

Jan, the CoffeeScript.compile function takes a second optional parameter called options. If
you pass { bare: true }, the compiled code will not be wrapped in a closure. See my line note
on your commit: https://github.com/janl/couchdb/commit/7ca8251cd63f2b0ab73dc7fcad0248f97519fd25#L6R74

Great to see this getting into 1.2, makes so much sense. We're doing similar to Tane, already
using coffeescript with nodejs + cradle and our views are already written in coffeescript,
having CouchDB automatically take care of this and be able to write temporary views / make
edits to existing views during development in coffeescript is mighty awesome.

> Natively support coffeescript
> -----------------------------
>
>                 Key: COUCHDB-817
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-817
>             Project: CouchDB
>          Issue Type: New Feature
>            Reporter: Matt Parker
>            Assignee: Jan Lehnardt
>             Fix For: 1.2
>
>
> i'd love to be able to put coffeescript map and reduce function/files directly into my
ddoc, instead of having to compile them first.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message