Added a parameter "prefix" that is added to non-canonical uris
[maven-thymeleaf-skin] / src / main / resources / META-INF / maven / site.vm
index 09cef8f..7aecf98 100644 (file)
 #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 )