From: Kai Moritz Date: Sun, 28 Feb 2021 21:04:07 +0000 (+0100) Subject: Made the thymeleaf-command that decorates the template configurable X-Git-Tag: maven-thymeleaf-skin-1.1.0~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=676ea22c20f303f84050852b67592091c00054ed;p=maven-thymeleaf-skin Made the thymeleaf-command that decorates the template configurable --- diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm index 3e84b93..39f55ec 100644 --- a/src/main/resources/META-INF/maven/site.vm +++ b/src/main/resources/META-INF/maven/site.vm @@ -124,6 +124,7 @@ #end #set ( $sitePath = $canonicalPath + $project.version + "/" ) #set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() ) +#set ( $command = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'command' ).getValue() ) @@ -135,13 +136,7 @@ - + $title diff --git a/src/site/site.xml b/src/site/site.xml index 8295a60..51950a0 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -25,6 +25,7 @@ /maven-thymeleaf-skin/ "/index.html","/projects.html" + th:replace="~{/templates/layout.html :: layout(uri='' + ~{:: code[class='site_uri']/text()}, title=~{:: title}, maincontent=~{:: .maincontent}, json='MERGE:' + ~{:: pre[class='json']/text()})}"