Open netpro2k opened 13 years ago
Hmm... this is a good point. Maybe we should strive for something along the lines of Dojo or YUI?! Currently Kranium is more like jQuery with a wide scope where you get all or nothing.
Also, it could be interesting to evaluate what performance/memory gains can be achieved by splitting things up. I'll look into it!
Yeah, i think there are a few components that area really quite standalone:
Currently besides Jade and Backbone, all of Kranium must be included. Though some parts of Kranium are required for basic operation, others seem to be just niceties, that may not be required in every application. The user should be able to include parts at will. This issue can serve as a discussion for the best way to do this.
Perhaps the Jake task should only concatenate those parts of Kranium that are absolutely required. Then,
kranium init
could copy the remaining individual components (db.js, file.js, etc) and could then handle including the appropriate parts in app.js.The code inserted by
kranium init
into app.js would become something like:Haven't yet figured out a good way to communicate/enforce dependances.... Thoughts?