title: Failed to lookup view in node.js ejs template while the template is only just renamed
body: <p>I have a node.js application rendering in ejs 3 template.
  let 's say -there is one template, course.ejs, it used to work well in node.js. </p>
  
  <pre><code>res.render('course', locals);
  </code></pre>
  
  <p>However, today when I tried to change the content, let 's say - course.ejs, it doesn't take effect, there is no error with node.js application and the data passed to the template is all right.</p>
  
  <p>I even copy-pasted the content of this template, and make a new template with a different name - course1.ejs. and change my code to</p>
  
  <pre><code>res.render('course1', locals);
  </code></pre>
  
  <p>then when the app runs again, it pops up a error saying</p>
  
  <h2>Error: Failed to lookup view "course1" template.</h2>
  
  <p>The code in node.js and template are all right, it is supposed to work in the ways above. Why it doesn't work now. I have my ejs version 0.8.3, while express in 3.1.0 and node.js in 0.10.0</p>
  
  <p>This is my app configuration.</p>
  
  <pre><code>app.configure(function(){
      app.engine('.html', require('ejs').__express);
      app.set('view engine', 'html');
      app.set('views',__dirname+'/views');
  
      app.use(express.favicon(__dirname + '/public/favicon.ico'));
  
    app.use(express.compress({
      filter: function (req, res) {
        return /json|text|javascript|css/.test(res.getHeader('Content-Type'));
      },
      level: 9
    }));  
  
      app.use(express.bodyParser({uploadDir:__dirname+'/public/uploads',keepExtensions: true,limit: '50mb'}));
      app.use(express.methodOverride());
      app.use(express.cookieParser());
      app.use(express.session({ 
                        cookie: { maxAge: 24 * 60 * 60 * 1000 }
                        ,store: sessionStore
                        ,secret: config.sessionSecret
                        ,key: 'express.sid'
                        ,clear_interval: 3600
      }));
  
  
      app.use(express.csrf()); 
      app.use(function(req, res, next){
        res.locals.token = req.session._csrf;
        next();
      });
  
  
      app.use(express.static(__dirname+'/public'));   
  
  }
  </code></pre>
  
  <h3>my static files is in the public folder, and all the templates are in the view folder.</h3>
  
  <p>I wonder has anyone met this kind of problem before</p>