title: Handlebars template not being rendered in views directory
body: <p>This is my <code>index.js</code> code which is supposed to render <code>index.hbs</code> inside <code>views</code> directory but gives error <code>Error: ENOENT no such file or directory, open '__dirname\views\layouts\main.hbs'</code> , i dont even have a layouts folder.</p>
  
  <p><code>index.js</code></p>
  
  <pre><code>const express = require('express');
  const expressHbs = require('express-handlebars');
  const bodyParser = require('body-parser');
  const path = require('path')
  const app = express();
  
  app.use(bodyParser.urlencoded({extended: false}));
  
  app.set('view engine', 'hbs');
  app.engine('hbs', expressHbs({extname: 'hbs'}));
  app.set('views', 'views');
  
  app.get('/', (req,res)=&gt; {
     res.render('index');
  });
  
  app.listen(3000, ()=&gt; {
      console.log("SERVER HAS STARTED ON PORT 3000");
  });
  </code></pre>