I have a small node.js app (my first) that I want to have compile it's less.js stylesheets when the server loads. The point I'm starting at is the express example app for jade where it appears it compiles it's SASS templates when the server is created:
var pub = __dirname + '/public';
var app = express.createServer(
express.compiler({ src: pub, enable: ['sass'] }),
express.staticProvider(pub)
);
I saw this and hoped it would be as simple as changing sass to less but that doesn't appear to work.
Is there a different approach I should take? Is there something I'm missing? I can't find the documentation on the .compile method anywhere.
Thanks!