cloudhead/less.js — pull request #868 by guybedford (2012-07-13 14:11:48+00:00)
Title: Requirejs server support

I'm a big fan of having codebases that can work equally well on client and server, and less.js is one of them.

In a requireJS project, there is no reason I shouldn't be able to use exactly the same version of less.js both in the browser and on the server.

The elegance of the following is what I am after:

```
volo add cloudhead/less.js
```

And then having:

```javascript
require(['less'], function(less) {
var parser = new less.Parser();
});
```

work both on the client and server, with the same codebase.

I've got this working on my own internal code, and have included the minor corrections needed in this pull request.

I completely understand if this doesn't make sense to your own process, but I'm about to release the client and server-side compatible requireJS plugin, *require-less*, and this would mean the difference between being able to have less as a dependency and needing to include all the code with this fork being kept up to date.

Would be much appreciated if you can take any of this on board.