title: res.render, res.write and Jade
body: <p>I'm trying to make simple ftp client in Node.js. Everything works fine, but I don't know how to write "singleFile.name" in my Jade template.</p>
  
  <pre><code>app.post('/ftp/login', function(req, res){
    ftp.ls("/directory", function(err, files){
        if (err) return console.error(err);
  
        files.forEach(function(singleFile) {
          if (singleFile != null){
          console.log(singleFile.name + "&lt;br&gt;");
          }
        });
    });
  
   res.render('ftpLogin', { host: fHost, username: fUsername, port: fPort});
  });
  </code></pre>
  
  <p>There's no problem without "res.render", but i want add it into my template.</p>
  
  <pre><code>res.writeHead(200, {"Content-type" : "text/html; charset=utf-8"});
  [...]
  res.write(singleFile.name + "&lt;br&gt;");
  [...]
  res.end();
  </code></pre>
  
  <p>I'm newbie (3 days Node learning), so I will be glad for all your responses to mistakes.</p>
  
  <p>Thank you! </p>