Permalink
Browse files

Merge branch 'master' of github.com:gett/rex

  • Loading branch information...
2 parents 9b4d5bb + 38af87d commit 50bd31d5dc3395a6ea7d9e41c4e65310ae7e3f6a @mafintosh mafintosh committed Apr 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
@@ -15,7 +15,8 @@ var app = connect(); // this could also be an express instance
app.use('/js', rex('js')); // rex will now serve all your javascript from the js folder
```
-Your browserside javascript can now use `require` to require other modules and `exports` and `module.exports` just like in node.js
+Your browserside javascript can now use `require` to require other modules and `exports` and `module.exports` just like in node.js.
+Additionally if your module exports a global variable with the same name as your module `require` will still work!
If you require a module like `require('my-module')` rex will look for it in the nearest `browser_modules` or `node_modules` folder.
``` js

0 comments on commit 50bd31d

Please sign in to comment.