title: Using NodeJS with Express 3.x and Jade templates is it possible to just re-render one item for a previously rendered list?
body: <p>I have been trying to find any post that can explain if it is possible to re-render one 'new' item (append) to a jade template list.</p>
  
  <ol>
  <li><p>Say that we have a list of log-entries and upon first request we render a fetched list from a MongoDB collection 'logs', using res.render and Jades each functionality.</p></li>
  <li><p>Since we like to retrieve updates from the database we also have a MongoWatch attached to that collection that listens for changes. Upon update can we execute some code that appends to that first list in the Jade-template?</p>
  
  <pre><code>/* app.js */
  
  /*
      Display server log 
  */
  app.get ('/logs', function(req, res, next) {
  
    // Using Monk to retrieve data from mongo
    var collection = db.get('logs');
  
    collection.find({}, function(e,docs){
  
      // watch the collection
      watcher.watch('application.logs', function(event){
        // Code that update the logs list with the new single entry event.data?
      });
  
      // Request resources to render
      res.render('logs', { logs: docs } );    
    });
  
  });
  
  &lt;!-- logs.jade --&gt;
  extends layout
  
    block content
  
      div
        each log in logs
          div.entry
            p.url= log.url
  </code></pre></li>
  </ol>
  
  <p>Maybe i should use the template engine in another fashion, i am quite new to Express, Jade and really appreciate all you guys that spends your time answering problems like these..</p>
  
  <p>// Regards</p>