You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Avi Flax <av...@arc90.com> on 2010/04/12 01:01:02 UTC
Re: Newbie problem with template path
Back in February, Clemens pasted this from an email from Chris:
> CouchDB itself has no idea about //!json, it's all in the toolchain.
> (We're working on changing this but the syntax will be proper javascript
> instead of a macro. This will be in 0.11 and will make it easier for you.)
Now that 0.11 has been released, I'm wondering if this happened? I
can't seem to find any documentation on such a feature.
Thanks!
Avi
--
Avi Flax » Partner » Arc90 » http://arc90.com
Re: Newbie problem with template path
Posted by J Chris Anderson <jc...@gmail.com>.
On Apr 11, 2010, at 4:07 PM, Avi Flax wrote:
> On Sun, Apr 11, 2010 at 19:01, Avi Flax <av...@arc90.com> wrote:
>
>> Now that 0.11 has been released, I'm wondering if this happened? I
>> can't seem to find any documentation on such a feature.
>
> OK, after a little more digging, I found some JIRA issues that seem to
> be related:
>
> https://issues.apache.org/jira/browse/COUCHDB-658
> "Add CommonJS style modules to the view server" — I imagine this would
> be useful for loading a templating library.
>
> https://issues.apache.org/jira/browse/COUCHDB-693
> "require function - add support for requiring plain html/xml files in
> addition to only javascript" — this seems it would be the mechanism
> for loading the templates themselves.
>
> They are both marked as open and unassigned, so I assume neither made
> it in to 0.11. Since 0.11 is supposed to be a feature freeze for 1.0,
> I suppose that means that these features will be post-1.0?
The first (CommonJS require) made it into 0.11 and I've just commented on the second with the correct way to load templates (the _design doc is available as the "this" object in _show _list etc functions).
Thanks for bringing these to my attention. I've closed them both.
Chris
Re: Newbie problem with template path
Posted by Avi Flax <av...@arc90.com>.
On Sun, Apr 11, 2010 at 19:01, Avi Flax <av...@arc90.com> wrote:
> Now that 0.11 has been released, I'm wondering if this happened? I
> can't seem to find any documentation on such a feature.
OK, after a little more digging, I found some JIRA issues that seem to
be related:
https://issues.apache.org/jira/browse/COUCHDB-658
"Add CommonJS style modules to the view server" — I imagine this would
be useful for loading a templating library.
https://issues.apache.org/jira/browse/COUCHDB-693
"require function - add support for requiring plain html/xml files in
addition to only javascript" — this seems it would be the mechanism
for loading the templates themselves.
They are both marked as open and unassigned, so I assume neither made
it in to 0.11. Since 0.11 is supposed to be a feature freeze for 1.0,
I suppose that means that these features will be post-1.0?