title: How to render Swig templates with Express 4?
body: <p>I am not able to use Swig templates with Express for Node. 
  I get the following error : </p>
  
  <pre><code>Error: Failed to lookup view "index" in views directory
  </code></pre>
  
  <p>The Swig templates are not being compiled into .html files</p>
  
  <p>My code is below : </p>
  
  <pre><code>var express = require('express');
  var cons = require('consolidate');
  var swig = require('swig');
  var app = express();
  
  //Set template engine
  app.engine('html', cons.swig);
  app.set('view engine', 'html');
  app.set('views', __dirname + '/views')
  
  
  // Disable Express's and Swig Cache
  app.set('view cache', false);
  swig.setDefaults({ cache: false });
  
  app.get('/', function(req, res){
    res.render('index', {'title': 'Design'});
  });
  
  app.listen(3000);
  </code></pre>