Infinite nested category resources

I was wandering how to do a blog example which can have a category/post but also acategory/InfiniteAmountOfcategories/post How would you define this in your routes and linkTo helpers?

Right now I’m thinking something like (Coffeescript): Router.map →   # setup all the default simple slide routes   for category in categories     @resource(category.get(‘name’))