<div><div><div>While that might make for nice default breadcrumbs, it wouldn'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"><<a href="mailto:schugschug@gmail.com">schugschug@gmail.com</a>></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 "Home"<br>
/contact ContactR GET "Contact Us"<br>
/services ServicesR GET "Our Services"<br>
/services/stuffwedo StuffWeDoR GET "Stuff We Do"<br>
<br>
The resource list would be expanded to include this hierarchy. Something like<br>
Resource String <<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>> [Piece <<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>>] [String <<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>>] String Maybe String<br>
<br>