title: nodejs + HBS (handlebars) : passing data to partials
body: <p>I have a little question about HBS and partials : How can I pass data to a partial ?
  Suppose I have an index.html template which include a head.html partial.</p>
  
  <p>I have a code like this :</p>
  
  <p>server.js :</p>
  
  <pre><code>var express = require('express');
  var app = express();
  var hbs = require('hbs');
  
  hbs.registerPartials(__dirname + './views/partials');
  
  app.set('view engine', 'html');
  app.engine('html', hbs.__express);
  app.use(express.bodyParser());
  
  app.get('/:item', function(req, res) {
     res.render('index',{title:"My Blog", item : req.param("item"), head : "hello world!"});
  });
  
  app.listen(8090);
  </code></pre>
  
  <p>index.html :</p>
  
  <pre><code>{{&gt; head}}
  Title : {{title}} - {{item}}
  </code></pre>
  
  <p>head.html : </p>
  
  <pre><code>&lt;h1&gt;{{head}} - HEAD&lt;/h1&gt;
  </code></pre>
  
  <p>So, when I call my localhost:8090/test, everything works fine except the fact that the partial does not display the {{head}} data.</p>
  
  <p>How can I pass data to my partial?</p>
  
  <p>Thanks for your help</p>