- xmlns:layout="http://www.thymeleaf.org"
- layout:decorator="templates/layout"
- th:with="uri='$sitePath$alignedFileName'"
+ th:replace="~{/templates/layout.html :: layout(
+ uri='$sitePath$alignedFileName',
+ json='MERGE:
+{
+ "_names":{#set($sep = "")#foreach($page in $pages)$sep"$sitePath$page.uri":"$page.name"#set($sep = ",")#end},
+ "_childs":{#set($sep = "")#foreach($page in $pages)
+ #if(!$page.childs.isEmpty())$sep"$sitePath$page.uri":[#set($csep = "")#foreach($child in $page.childs.entrySet())
+ $csep"$sitePath$child.key"#set($csep = ",")
+ #end]
+ #end
+ #end},
+ "_crumbs":{#set($sep = "")#foreach($page in $pages)
+ $sep"$sitePath$page.uri":[#set($csep = "")
+ #if($siteCrumbs)$siteCrumbs#set($csep = ",")#end
+ #foreach($crumb in $page.crumbs)
+ $csep"$sitePath$crumb.uri"#set($csep = ",")
+ #end]
+ #end}
+}
+ ')}"