Express.js hbs module - registre parciais do arquivo .hbs

Estou usando o handlebars.jshbs wrapper dentro express.js. Tenho modelos funcionando bem, mas preciso adicionar parciais para serem renderizados com minhas visualizações.

Gostaria de fazer algo assim:

hbs.registerPartial('headPartial', 'header'); 
// where "header" is an .hbs file in my views folder

o entanto, está lançando um "cabeçalho parcial não encontrado"

Posso fazer o registerPartial funcionar se eu passar uma string de html para o segundo parâmetro, mas gostaria de usar arquivos de exibição separados para minhas partes parciai

Não encontrei nenhuma documentação sobre isso, mas espero estar perdendo algo fáci

Alguém sabe como usar os arquivos de exibição no método registerPartial? Em caso afirmativo, como faço para implementar isso?

ATUALIZA

Para dar mais contexto, deixe-me adicionar mais código. Aqui está o meu arquivo "servidor" - app.js

var express = require('express')
, routes = require('./routes')
, hbs = require('hbs');

var app = module.exports = express.createServer();

// Configuration

app.configure(function(){
  app.set('views', __dirname + '/views');
  app.set('view engine', 'hbs');
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);
  app.use(express.static(__dirname + '/public'));
});

app.configure('development', function(){
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});

app.configure('production', function(){
  app.use(express.errorHandler());
});

// this is the line that generates the error
hbs.registerPartial('headPartial', 'header'); 

// What I'm expecting is for "headPartial" to be a compiled template partial 
// of the template within views/header.hbs, but it is not loading this way.
// If I do something like hbs.registerPartial('headPartial', '<p>test</p>');
// then it does work. I need to know how to pass an .hbs file to the
// registerPartial method.

// Routes
app.get('/', routes.index);

app.listen(3000);

E aqui está o meu arquivo routes.index:

exports.index = function(req, res){
  res.render('index', { title: 'Express' })
};

Na minha pasta views, tenho três modelos:

views/
  header.hbs (this is my partial)
  index.hbs
  layout.hbs

No meu arquivo index.hbs, estou chamando a parcial 'headPartial' com:

{{> headPartial}}

Qualquer ajuda é muito apreciada

questionAnswers(5)

yourAnswerToTheQuestion