#set ( $page = $stack.pop() )
#if ( $page.uri != "" )
+ #set ( $crumbs = $project.getClass().forName('java.util.LinkedList').newInstance() )
+ #foreach ( $entry in $stack )
+ #if ( $entry.uri != "" )
+ #set ( $crumb = $project.getClass().forName('java.util.LinkedHashMap').newInstance() )
+ #set ( $sinkhole = $crumb.put("uri", $entry.uri) )
+ #set ( $sinkhole = $crumb.put("name", $entry.name) )
+ #set ( $sinkhole = $crumbs.push($crumb) )
+ #end
+ #end
+ #set ( $sinkhole = $page.put("crumbs", $crumbs) )
+
#if ( $pages.containsKey($page.uri) )
#set ( $childs = $pages.get($page.uri).childs )
#set ( $sinkhole = $page.put("childs", $childs) )
- <!-- OVERWRITING PAGE - uri: $page.uri, name: "$page.name", childs: $page.childs -->
+ <!-- OVERWRITING PAGE - uri: $page.uri, path: $crumbs, name: "$page.name", childs: $page.childs -->
#else
- <!-- NEW PAGE --------- uri: $page.uri, name: "$page.name", childs: $page.childs -->
+ <!-- NEW PAGE --------- uri: $page.uri, path: $crumbs, name: "$page.name", childs: $page.childs -->
#end
#set ( $sinkhole = $pages.put($page.uri, $page) )