2

我想知道是否有人有这样的工作:

  @resources 'projects', ->
    @resources 'tables', ->
      @resources 'items'

具有相应的视图内容,例如:

%a{"data-bind" => "table.name", "data-route" => "routes.projects[project].tables[table]"}
  %div{"data-foreach-item" => "project.table.items"}
    %p{"data-bind" => item.name"}
    %a.btn{"data-route" => "routes.projects[project].tables[table].items[item]"} View details »

这里的问题在于链接标签:

Uncaught DevelopmentError: Couldn't find a route for the name items! 

但是 p 标签中的项目名称显示正确。我的路线有问题。有人知道 BatmanJS 中的多个嵌套路由吗?

4

1 回答 1

0

已确认,它的工作深度不超过两层。没有超过两个级别的测试,所以这可能是设计使然。

于 2012-09-02T20:41:19.537 回答