emberfeather/less.js-middleware — pull request #18 by johngeorgewright (2012-11-23 00:24:55+00:00)
Title: Added the option to configure the less paths.

Hey there,

I've added an option to configure the import paths when rendering. I found this handy when submodules had less files that I wanted to use (for example bootstrap).

It can be used by specifying a `paths` property when calling the `less-middleware()` method. For example:

```js
var path = require('path'),
less = require('less-middleware');

less({
src : path.join(__dirname, 'assets', 'less'),
paths : path.join(__dirname, 'node_modules', 'bootstrap', 'less'), // This could be a string or an array
dest : path.join(__dirname, 'public', 'stylesheets'),
prefix : '/stylesheets'
});
```

Now I can import bootstrap in my less files:

```css
// assets/less/base.less

@import 'bootstrap';
@textColor: @black;
```