Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 478 Bytes
/*jshint node: true, camelcase: true, eqeqeq: true, forin: true, immed: true, latedef: true, newcap: true, noarg: true, undef: true, globalstrict: true*/
"use strict";
var Q = require('q');
var path = require('path');
var less = require('less');
var parseLess = Q.nfbind(less.render.bind(less));
module.exports = function setupLess(Styliner) {
Styliner.styleFormats.less = function (source, filename) {
return parseLess(source, { paths: [path.dirname(filename)] });
};
}