<div><div><div>While that might make for nice default breadcrumbs, it wouldn&#39;t be expressive enough for all use cases. I think we should reserve indentation to indicate route nesting:</div><div><br></div><div>/posts PostsR</div>

<div>    /#Int PostR</div><div>        /comments CommentR</div><div><br><div class="gmail_quote">On Thu, Jun 9, 2011 at 4:02 PM, Eric Schug <span dir="ltr">&lt;<a href="mailto:schugschug@gmail.com">schugschug@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">There seems to be much redundant information created within the Yesod structure.<br>
One place to define the routes<br>
Another place defines the route hierarchy for breadcrumbs with titles.<br>
A third place defines, but not integrated into Yesod, defines use menus (usually similar hierarchy and titles).<br>
<br>
Would it be possible to have all of this defined into one place, by extending the routes definition using white space<br>
hierarchy similar to hamlet definition.<br>
and optionally include Title name.<br>
<br>
-- Example config/routes<br>
/static StaticR Static getStatic<br>
/favicon.ico FaviconR GET<br>
/robots.txt RobotsR GET<br>
/ RootR GET &quot;Home&quot;<br>
    /contact  ContactR GET  &quot;Contact Us&quot;<br>
    /services ServicesR GET  &quot;Our Services&quot;<br>
        /services/stuffwedo StuffWeDoR GET &quot;Stuff We Do&quot;<br>
<br>
The resource list would be expanded to include this hierarchy. Something like<br>
Resource String &lt;<a href="http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:String" target="_blank">http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:String</a>&gt; [Piece &lt;<a href="http://hackage.haskell.org/packages/archive/web-routes-quasi/0.6.3/doc/html/Web-Routes-Quasi-Parse.html#t:Piece" target="_blank">http://hackage.haskell.org/packages/archive/web-routes-quasi/0.6.3/doc/html/Web-Routes-Quasi-Parse.html#t:Piece</a>&gt;] [String &lt;<a href="http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:String" target="_blank">http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:String</a>&gt;]  String Maybe String<br>


<br>