mikeal / node.couchapp.js

Utility for writing couchapps.
Apache License 2.0
406 stars 78 forks source link

Add attachment by name (rather than through directory) #79

Open garbados opened 10 years ago

garbados commented 10 years ago

As far as I can tell, it is currently impossible to add a file -- not a directory -- to the design doc. Something like this:

couchapp.loadFile(ddoc, './index.html');

This feature is especially important to turning other projects into couchapps, where it's inconvenient / unsustainable to move stuff around in order to fit a couchapp's idea of directory structure.