title: Change .ejs extension to .html using Parse.com Express.js
body: <p>How would I go about using .html extensions on my view files instead of .ejs when using Parse.com's Express.js?</p>
  
  <p>I changed the EJS delimiters to <code>&lt;?</code> and <code>?&gt;</code> because I'm used to them from PHP. That worked fine, but I can't seem to change the file extension for my view files:</p>
  
  <p>I've tried the following:</p>
  
  <pre><code>var express = require('express');
  var ejs = require('ejs');
  var app = express();
  
  ejs.open = '&lt;?';
  ejs.close = '?&gt;';
  
  app.set('view engine', 'ejs');
  app.engine('.html', ejs.renderFile);
  app.set('views', 'cloud/views'); app.use(express.bodyParser());
  
  app.get('/', function(req, res) {
      res.render('Test', { message: 'Hello Express!' });
  });
  
  app.listen();
  </code></pre>
  
  <p>And I get an internal server error.</p>
  
  <p>I've also tried eliminating this line with the same result:</p>
  
  <p><code>app.set('view engine', 'ejs');</code></p>