#end
## Custom Variablen einlesen
+#set ( $pathPrefix = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'prefix' ).getValue() )
+#if ( !$pathPrefix )
+ #set ( $pathPrefix = "" )
+#end
#set ( $canonicalPath = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'path' ).getValue() )
#if ( !$canonicalPath )
#set ( $canonicalPath = "" )
+ <!-- WARNING: configuration parameter "path" is not set -->
#end
-#set ( $sitePath = $canonicalPath + $project.version + "/" )
+#set ( $sitePath = $pathPrefix + $canonicalPath + $project.version + "/" )
#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
+#set ( $command = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'command' ).getValue() )
+#if ( !$command )
+ #set ( $command = "" )
+ <!-- WARNING: configuration parameter "command" is not set -->
+#end
<!-- name: $pages.get($alignedFileName).name -->
<!-- title: $title -->
<!--*/-->
-<html
- xmlns="http://www.w3.org/1999/xhtml"
- th:replace="~{/templates/layout.html :: layout(
- uri='$sitePath$alignedFileName',
- title=~{:: title},
- maincontent=~{:: .maincontent},
- json='MERGE:
- {
- "_titles": {
- #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
- ]
- #set($sep = ",")
- #end
- #end
- },
- "_crumbs": {
- #set($sep = "")
- #foreach($page in $pages)
- $sep
- "$sitePath$page.uri": [
- #set($csep = "")
- #if($siteCrumbs)
- $siteCrumbs
- #set($csep = ",")
- #end
- #set($last = "")
- #foreach($crumb in $page.crumbs)
- #if($sitePath+$crumb.uri != $last)
- $csep
- "$sitePath$crumb.uri"
- #set($csep = ",")
- #set($last = $sitePath+$crumb.uri)
- #end
- #end
- ]
- #set($sep = ",")
- #end
- }
- }
- ')}"
- >
+<html xmlns="http://www.w3.org/1999/xhtml" $command>
<head>
- <title id="title">#if($shortTitle and $shortTitle != '')$title#else$project.name — $pages.get($alignedFileName).name#end</title>
+ <title class="title">$title</title>
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
<link id="canonical" rel="canonical" href="$canonicalPath$alignedFileName"/>
</head>
<body>
+ <h1 class="short_title">$shortTitle</h1>
+ <h2>URI</h2>
+ <ul>
+ <li><strong>site:</strong> <code class="site_uri">$sitePath$alignedFileName</code></li>
+ <li><strong>canonical:</strong> <code class="canonical_uri">$canonicalPath$alignedFileName</code></li>
+ <li><strong>relative:</strong> <code class="relative_uri">$alignedFileName</code></li>
+ </ul>
<h2>Path</h2>
<p>
<ol>
$bodyContent
</article>
<hr />
- <h2>Pages</h2>
+ <h2>Page Structure as JSON</h2>
+ <pre class="json">
+{
+ "_titles": {#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
+
+ ]#set($sep = ",")#end#end
+
+ },
+ "_crumbs": {#set($sep = "")#foreach($page in $pages)$sep
+ "$sitePath$page.uri": [
+#set($csep = "")#if($siteCrumbs)
+ $siteCrumbs#set($csep = ",")#end#set($last = "")#foreach($crumb in $page.crumbs)#if($sitePath+$crumb.uri != $last)$csep
+ "$sitePath$crumb.uri"#set($csep = ",")#set($last = $sitePath+$crumb.uri)#end#end
+
+ ]#set($sep = ",")#end
+
+ }
+}
+ </pre>
+ <h2>All Pages</h2>
<p>
<ul>
#foreach($page in $pages)<li><a href="$page.uri">$page.name</a></li>#end