title: Node.js - Nested array in Jade view
body: <p>Using Mongoose, I have a model Page with an embedded model of Feeds. When i go to /pages, the page.title shows up for each page, but feeds data does not. how should i modify this code to properly display the data from the feeds array?  thanks a million</p>
  
  <p>db.pages exmaple:</p>
  
  <pre><code>{ "title" : "testing feeds", "_id" : ObjectId("123456"), "feeds" : [
  { "0" : { "name" : "twitter", "key" : "1234" },
    "1" : { "name" : "flickr", "key" : "5678" },
  }] }
  </code></pre>
  
  <p>web.js</p>
  
  <pre><code>app.get('/pages.:format?', function(req, res) {
    Page.find({}, function(err, pages) {
      switch (req.params.format) {
        case 'json':
          res.send(pages.map(function(d) {
            return d.toObject();
          }));
        break;
  
        default:
          res.render('pages/index.jade', {
            locals: { 
                title: 'ClrTouch | Pages',
                pages: pages,
                feeds: pages.feed,
            }
          });
      }
    });
  });
  </code></pre>
  
  <p>view</p>
  
  <pre><code>- each page in pages
    div.page
      div.pagetitle= page.title
        ul
        - each feed in page.feeds
          li.pagefeedname= feed.name
          li.pagefeedkey= feed.key
  </code></pre>
  
  <p>with what i have, a list is generated in the view but the list items are empty.  Thanks.</p>