Hacker News new | ask | show | jobs
by mehi 5683 days 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/

We would welcome your suggestions on the frameworks you want us to take a look into.

1 comments

It'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.h...