title: Node.js passing parameters to client via express render
body: <p>I'm using Node.js and I'm having issues communicating with a client.</p>
  
  <p>I define Express:</p>
  
  <pre><code>var express             = require("express");
  var app                 = express();`
  </code></pre>
  
  <p>When I try and pass a parameter to the client upon requesting a page the variable holds no data, for example:</p>
  
  <pre><code>app.get("/", function(req, res){
      res.render("index", { name: "example" });
  });
  </code></pre>
  
  <p>On the index page, when I use the console to print the variable (<code>name</code>)it returns <code>""</code>.</p>
  
  <p>More info: <a href="http://expressjs.com/api.html#app.render" rel="noreferrer">http://expressjs.com/api.html#app.render</a></p>
  
  <p>Am I missing something or doing something wrong?</p>