2012-09-02 49 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

確認,它不能工作超過兩個深度。沒有超過兩個級別的測試,所以這可能是設計。