projects
/
maven-thymeleaf-skin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made the thymeleaf-command that decorates the template configurable
[maven-thymeleaf-skin]
/
src
/
main
/
resources
/
META-INF
/
maven
/
site.vm
diff --git
a/src/main/resources/META-INF/maven/site.vm
b/src/main/resources/META-INF/maven/site.vm
index
3e84b93
..
39f55ec
100644
(file)
--- 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() )
#end
#set ( $sitePath = $canonicalPath + $project.version + "/" )
#set ( $siteCrumbs = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'crumbs' ).getValue() )
+#set ( $command = $decoration.custom.getChild( 'thymeproxy' ).getChild( 'command' ).getValue() )
<!-- name: $pages.get($alignedFileName).name -->
<!-- title: $title -->
<!-- name: $pages.get($alignedFileName).name -->
<!-- title: $title -->
@@
-135,13
+136,7
@@
<!--*/-->
<!--*/-->
-<html
- xmlns="http://www.w3.org/1999/xhtml"
- th:replace="~{/templates/layout.html :: layout(
- uri='$sitePath$alignedFileName',
- title=~{:: title},
- maincontent=~{:: .maincontent},
- json='MERGE:' + ~{:: pre[class='json']/text()})}" >
+<html xmlns="http://www.w3.org/1999/xhtml" $command>
<head>
<title class="title">$title</title>
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
<head>
<title class="title">$title</title>
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />