title: Node.js - express - jade - compile SASS/LESS
body: <p>Anyone have a <em>really</em> newbie guide to nodejs - express - SASS/LESS? I have not been able to get this working. The example I have now is a bareboned as possible..</p>
  
  <pre><code>var express = require('express'),
      less = require('less'),
      app = express.createServer();
  
  var pub_dir = __dirname + '/public';
  
  app.configure(function(){ 
      app.use(express.compiler({ src: pub_dir, enable: ['less'] }));
      app.use(express.staticProvider( pub_dir ));
  };
  
  app.configure('development', function(){
      app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
  });
  </code></pre>
  
  <p>The file <code>style.css.less</code> is located in <code>pub_dir</code>, I can access that directly, and the styling is</p>
  
  <pre><code>@brand_color: #4D926F;
  body {
    color: @brand_color;
  }
  </code></pre>
  
  <p>As far as I understand, the compilation is supposed to happen on start-up, and a css file will be generated in the <code>src</code>-dir, as dest is not specified.<br>
  My server runs fine, but regardless of how many ways I have tried messing around with the dirnames, directories and names of the LESS/SASS files (and their respective LESS/SASS content) I cannot get this working. Darn! Help.</p>