title: Pull mongo data to ejs template
body: <p>I have the following basic document in mongo:</p>
  
  <pre><code>connecting to: test
  &gt; db.car.find();
  { "_id" : ObjectId("5657c6acf4175001ccfd0ea8"), "make" : "VW" }
  </code></pre>
  
  <p>I am using express, mongodb native client (not mongoose) and ejs.</p>
  
  <pre><code> collection.find().toArray(function (err, result) {
        if (err) {
          console.log(err);
        } else if (result.length) {
         console.log('Found:', result);
          mk = result;
          console.log('mk = ', mk);
        } else {
          console.log('No document(s) found with defined "find" criteria!');
        }
          //Close connection
        db.close();
      });
    }
  });
  </code></pre>
  
  <p>Here is the render code:</p>
  
  <pre><code>// index page
  app.get('/', function(req, res) {
     res.render('pages/index', { make: result });
      });
  </code></pre>
  
  <p>And i want to pass the data make:  VW into my index.ejs file:</p>
  
  <pre><code> &lt;h2&gt;Cars:&lt;/h2&gt;
          &lt;h3&gt;My favorite make is &lt;%= make %&gt;
  </code></pre>
  
  <p>This should be real simple and straightforward but i just don't understand how to pass the "mk" variable (which i can console.log to the screen) to be rendered by the ejs view?</p>