On Apr 11, 2010, at 4:07 PM, Avi Flax wrote: > On Sun, Apr 11, 2010 at 19:01, Avi Flax <[email protected]> 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
