title: How to get object's value in Pug?
body: <p>I'm using Node.js to render a page using Pug. My JavaScript code:</p>
  
  <pre><code>router.get('/', function(req, res, next) {
    res.render("index",{
      title:"首页",
      user:{name:"luo",age:19}
    });
  });
  </code></pre>
  
  <p>My Pug code:</p>
  
  <pre><code>script.
      window.user = #{user}
  </code></pre>
  
  <p>But the result is like this:</p>
  
  <pre><code>&lt;script&gt;window.user = [object object]&lt;/script&gt;
  </code></pre>
  
  <p>How to get the object's value correctly?</p>