5 ms·
It's really easy to port/wrap plain JavaScript code to Erbix/CommonJS; this is the first thing we've noticed while coding on Erbix Blog/Form Creator/ActiveRecor
by mehi 16y ago
It's really easy to port/wrap plain JavaScript code to Erbix/CommonJS; this is the first thing we've noticed while coding on Erbix Blog/Form Creator/ActiveRecord (included in Blog, a port from TrimPath Junction).
One other example si UnderscoreJS, the library is already "ported"; this code does the trick:
if (typeof exports !== 'undefined') exports._ = _;
http://documentcloud.github.com/underscore/ http://documentcloud.github.com/underscore/
We would welcome your suggestions on the frameworks you want us to take a look into.
- jashkenas 16y agoIt's nice that it already "just works" -- here's a direct link to the bit of code in question: http://documentcloud.github.com/underscore/docs/underscore.html#section-9 http://documentcloud.github.com/underscore/docs/underscore.h...