title: Routing for category tree
body: <p>I am using the <a href="http://www.gediminasm.org/article/tree-nestedset-behavior-extension-for-doctrine-2" rel="nofollow">Tree</a> doctrine extension for a category tree and would like to have routes like:</p>
  
  <pre><code>/cat/subcat1/subcat2/subcat3
  </code></pre>
  
  <p>I can do it defining routes like</p>
  
  <pre><code>/{cat}
  /{cat}/{subcat}
  /{cat}/{subcat}/{subcat2)
  etc...
  </code></pre>
  
  <p>But is there a more elegant and general way of implementing this? A system that can accept an unlimited number of levels?</p>