couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: !json and !code or require()
Date Sun, 05 Dec 2010 23:19:18 GMT
On Sunday, December 5, 2010, Johnny Weng Luu <johnny.weng.luu@gmail.com> wrote:
> In 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?
>
> /Johnny
>

require didn't exist when the book was written. also they can serve
differrents purposes.

- benoƮt

Mime
View raw message