title: What's the difference between EJS's render() and renderFile()?
body: <pre class="lang-js prettyprint-override"><code>    var express = require('express');
      var ejs = require('ejs');
      var app = express(); 
  
      app.engine('ejs', ejs.renderFile);
  
      app.get('/', (req, res) =&gt; {
        res.render('index.ejs', {
          title: 'Index',
          content: 'This is Express-app Top Page'
        })
      });
  
      var server = app.listen(3000, () =&gt; {
        console.log('server start port: 3000');
      });
  </code></pre>
  
  <p>I was using <code>ejs.render()</code> method to render an EJS template string in Node.js (without using a framework). But I found <code>ejs.renderFile()</code> method used as a view engine in the Express framework. I can't find any difference between the two methods.</p>