In the CouchDB Definitive Guide the author says you could use:
// !json templates.edit
// !json blog
// !code vendor/couchapp/path.js
// !code vendor/couchapp/template.js
But why use those macros when you can use require()?
Are there occasions I want to use the macros instead?
This was a feature from before CommonJS modules were introduced into CouchDB. These macros are pretty much obsolete now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With