2012-09-02 50 views
2

我想知道是否有人有这样的工作:BatmanJS:深度嵌套的路线

@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有多个嵌套路线的想法?

回答

0

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