Coffeescript 帆-把手可以';不定位分部词

Coffeescript 帆-把手可以';不定位分部词,coffeescript,sails.js,handlebars.js,Coffeescript,Sails.js,Handlebars.js,我最近将我的Sails.js更新到了v0.10.4,但我无法让Handlebar partials正常工作(还没有在旧版本上尝试过)。我的index.handlebar{{>head}、{{{>body}和{{>footer}中有3个部分。它给我的错误是: { "message": "The partial head could not be found", "name": "Error" } 我的路由器如下所示: module.exports.routes = { '/': {

我最近将我的Sails.js更新到了v0.10.4,但我无法让Handlebar partials正常工作(还没有在旧版本上尝试过)。我的index.handlebar{{>head}、{{{>body}和{{>footer}中有3个部分。它给我的错误是:

{
  "message": "The partial head could not be found",
  "name": "Error"
}
我的路由器如下所示:

module.exports.routes = {

  '/': {
    controller: 'home'
    action: 'index'
    view: 'index'
  }
}
还有我的家庭控制器:


head.handlebar、body.handlebar和footer.handlebar位于视图/login/

中,请确保您的配置正确:

config/views.js

module.exports.views = {
  engine      : 'handlebars',
  layout      : false
};
此外,我认为设置
视图
也行不通。(除非有办法在routes文件中设置partials)


最后,我认为控制器需要部分定义为相对于视图的路径。

我已经尝试过了。感觉上,sails只是忽略了把手的部分。这表明情况并非如此
module.exports.views = {
  engine      : 'handlebars',
  layout      : false
};
  '/': {
    controller: 'home',
    action: 'index'
  }