title: Stylus Middleware not compiling CSS
body: <p>Can you please help me with <strong>Stylus Middleware</strong>. I cannot make him to compile css file.</p>
  
  <p>Here is my app.js code:</p>
  
  <pre><code>// Module dependencies
  var express = require('express');
  var stylus = require('stylus');
  var nib = require('nib');
  var logger = require('morgan');
  
  // Compile function - check this function online
  function compile(str, path){
  return stylus(str)
  .set('compress', true)
  .use(nib())
  }
  
  // Stylus Middleware (functions that handles request)
  app.use(logger('dev')); //replaces your app.use(express.logger());
  app.use(stylus.middleware({ 
  src: __dirname + '/stylus',
  dest: __dirname + '/public',
  compile: compile
  }))
  app.use('/static', express.static(__dirname + '/public/static'));
  </code></pre>
  
  <p>Structure of my root folder is as following:</p>
  
  <blockquote>
    <p>userApp</p>
    
    <blockquote>
      <p>app.js</p>
      
      <p>stylus</p>
      
      <blockquote>
        <p>styles.styl</p>
      </blockquote>
      
      <p>public</p>
      
      <blockquote>
        <p>css</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>I have tried all that was posted previously but with no luck. I am a bit stuck and going in circles with this so if you have any advice it would be great. Thanks</p>