title: Issue convert jade to handlebars
body: <p>I am trying to rewrite some code that was written in <code>jade</code>. I need to use <code>express-handlebars</code> or something else that does not entirely alter the structure of html file. My question is: how to pass parameters in the new version, for example, the following one which is <code>user</code>?<br/><br/>
  The old working version using <code>jade</code>:</p>
  
  <h3>app.js</h3>
  
  <pre><code>var router = require('express').Router();
  router.get('/', function(req, res) {
    res.render('index', {user: req.user});
  });
  </code></pre>
  
  <h3>index.jade</h3>
  
  <pre><code>block content
    if (user)
      p You are currently logged in as #{user.username}
    else
      p You are currently not logged in. Please login or register...
  </code></pre>
  
  <p><br/><br/>The new version using <code>handlebars</code>:</p>
  
  <h3>index.handlebars</h3>
  
  <pre><code>&lt;div class="content"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><br/>So what should I write in the new <code>index.handlebars</code> file and/or what to change in <code>app.js</code> in order to display the <code>user.username</code> correctly? I am quite new to this so I appreciate anything that helps.</p>
  
  <h2>#Updates#</h2>
  
  <h3>index.handlebars</h3>
  
  <pre><code>&lt;a href="/login"&gt;Log In&lt;/a&gt;
  </code></pre>
  
  <h3>app.js</h3>
  
  <pre><code>var router = require('express').Router();
  router.get('/login', function(req, res) {
    res.render('login', {user: req.user});
  });
  </code></pre>
  
  <p>This <code>&lt;a&gt;</code> link worked in previous <code>index.jade</code> file which was written as</p>
  
  <pre><code>a(href="/login") Log In
  </code></pre>
  
  <p>Why it is not working in the new <code>index.handlebars</code> file? (More specifically, the url changed to <code>localhost:123/login</code> but the content does not change. No error in console.)</p>