title: Display data inside input value using Jade
body: <p>I'm fairly new to Jade and am wanting to display some outputted data as the <code>value</code> value of a text <code>input</code>. Like this:</p>
  
  <pre><code>input(type="text", name="date", value="THISRIGHTHURR")
  </code></pre>
  
  <p>But only the value needs to be <code>viewpost.date</code>. I've tried multiple ways and none seem to work:</p>
  
  <pre><code>input(type="text", name="date", value=viewpost.date) // doesn't work
  input(type="text", name="date", value=.=viewpost.date) // doesn't work
  input(type="text", name="date", value=".=viewpost.date") // doesn't work
  </code></pre>
  
  <p>I of course can get it to work outside of an <code>input</code> by doing something like</p>
  
  <pre><code>each post, i in viewpost
    h1.=post.date
  </code></pre>
  
  <p>Am I supposed to loop through in the <code>input</code> somehow too? This is the JS (using Node and Express) that's outputting my <code>viewpost</code> variable.</p>
  
  <pre><code>// render show post view
  exports.viewpost = function(db) {
      return function(req, res) {
          var id = req.params.id;
  
          collection.find({ "_id": new BSON.ObjectID(id) }, function (err, data) {
              res.render("viewpost", {
                  "viewpost" : data
              });
          });
      };
  };
  </code></pre>