decafjs / decaf

decaf core
MIT License
31 stars 7 forks source link

index.js in decaf-jolt and decaf-mongodb #11

Open mm765 opened 8 years ago

mm765 commented 8 years ago

Hi,

i have a question regarding the index.js files in decaf-jolt and decaf-mongodb (git versions). In the index.js file of decaf-jolt only the Application is exported (the others are commented out) whereas in the index.js file of decaf-mongodb multiple Objects are exported (MongoDB, Collection and so on). What is the reason for this ?

Regards, Matthias

mschwartz commented 8 years ago

Jolt was originally monolithic. It came with the various template systems, etc. I figured out it would be better to have a minimal core Jolt and let you pick and choose which plugins you want. I highly recommend the HoganJS one.

Mongo has a somewhat complex API. It is best represened in JS as several classes.

Make sense?

On Tuesday, January 5, 2016, mm765 notifications@github.com wrote:

Hi,

i have a question regarding the indexjs files in decaf-jolt and decaf-mongodb (git versions) In the indexjs file of decaf-jolt only the Application is exported (the others are commented out) whereas in the indexjs file of decaf-mongodb multiple Objects are exported (MongoDB, Collection and so on) What is the reason for this ?

Regards, Matthias

— Reply to this email directly or view it on GitHub https://github.com/decafjs/decaf/issues/11.

mm765 commented 8 years ago

Makes sense, thanks!