title: Failed to lookup view "index" in views using handlebars with nodejs
body: <p>I have an index.handlebars file in my views folder but I still got this error message </p>
  
  <pre><code>Error: Failed to lookup view "index" in views directory 
  </code></pre>
  
  <p>Below is my app.js file.  </p>
  
  <pre><code>var express = require('express');
  var app = express();
  var exphbs = require('express3-handlebars')
  
  app.engine('handlebars', exphbs({defaultLayout: 'main'}));
  app.set('view engine', 'handlebars');
  
  app.get('/',function(req,res){
      res.render('index');
  });
  
  app.use('/public', express.static('public'));
  
  var port = Number(process.env.PORT || 3000);
  app.listen(port);
  </code></pre>
  
  <p>Any thought? I felt so strange, it seems everything were right to me.</p>