title: Durandal js router setup
body: <p>I've managed to get a simple router working and even created a child router for my submenu but there are one or two things I'm not sure of why they're there. The docs give you a basic leg up and then you're on your own.</p>
  
  <p>So I'm reading the docs from here:<br>
  <a href="http://durandaljs.com/documentation/Using-The-Router.html" rel="nofollow">http://durandaljs.com/documentation/Using-The-Router.html</a></p>
  
  <p>First, there's mention of "splat" routes but it doesn't really explain what they are or how you might use it. All you get is an example bit of JS which means nothing without showing how its used. My assumption would be that they mean some sort of wildcard system of defining multiple routes on one line? Not entirely sure though.</p>
  
  <p>Second, when defining the child router they are setting a property on the route of "type: 'intro'". There's no mention of why though and it only seems relevant on the child router. Does anyone know what this type refers to and what the different values are?</p>
  
  <p>Overall I'm really impressed with this framework. I've managed to get a really sophisticated looking webapp roughed out in no time at all. It's just now I want to understand in a little more depth and the docs don't cover that much detail.</p>
  
  <p><strong>EDIT</strong><br>
  Digging around I've managed to find out a bit more about splat routes. It looks like a concept that has been copied from backbone plus others.<br>
  <a href="http://backbonetutorials.com/what-is-a-router/" rel="nofollow">http://backbonetutorials.com/what-is-a-router/</a></p>
  
  <p>Basically if I map the route 'section/*details' then this route will match any path that begins section/ and everything after the / will be passed as a parameter called details. I see how this can be useful for child routers because it will ensure deep linking will work. We want to make sure a request to section/admin goes first to the parent router (the section/ part) and then to the child router (admin).</p>
  
  <p>Still not getting this type parameter though. I can't find that explained anywhere.</p>