title: I am trying to route pug file in Express. The page rendered in not from view folder
body: <p>[text]This is the code I have in index.js file in the root folder in Express Project Folder[text]  </p>
  
  <pre><code>var express = require('express');
  var path = require('path');
  var bodyParser = require('body-parser');
  var nodemailer = require('nodemailer');
  var app = express();
  app.set("views",path.join(__dirname,"views"));
  app.set("view engine","pug");
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({extended: false}));
  app.get('/', function(req, res){
      res.render("sachin");
  });
  
  app.listen(3010);
  console.log('Server is running on port 3010...');
  </code></pre>
  
  <p>[text] So in view folder I have made a file sachin.pug but its not rendering that file. [text]</p>