This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-skin.git


View the commit online:
https://github.com/apache/commons-skin/commit/7a0e8e29de1308b8c3eb5e198001e017614db0b4

The following commit(s) were added to refs/heads/master by this push:
     new 7a0e8e2  Change $render.eval to #evaluate.
7a0e8e2 is described below

commit 7a0e8e29de1308b8c3eb5e198001e017614db0b4
Author: aherbert <[email protected]>
AuthorDate: Wed Nov 20 14:09:27 2019 +0000

    Change $render.eval to #evaluate.
    
    The former creates an empty velocity.log file in the project root
    directory.
---
 src/main/resources/META-INF/maven/site.vm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/META-INF/maven/site.vm 
b/src/main/resources/META-INF/maven/site.vm
index e423c2f..57cdcae 100644
--- a/src/main/resources/META-INF/maven/site.vm
+++ b/src/main/resources/META-INF/maven/site.vm
@@ -519,12 +519,13 @@
       ## Note:
       ## This is the content of the <head> tag in the site.xml.
       ## It can be used to contain any injected XHTML escaped by CDATA.
-      ## The render.eval() method allows the content to be evaluated in VTL
-      ## (Velocity Template Language). This means anything can be put into 
+      ## The #evaluate() directive allows the content to be evaluated in VTL
+      ## (Velocity Template Language). This means anything can be put into
       ## the <head> section if desired.
       ## Relative links can be rendered in scripts or links using
       ## $relativePath (as above).
-      $render.eval( $decoration.body.head )
+      ## https://velocity.apache.org/engine/1.7/user-guide.html#evaluate
+      #evaluate( $decoration.body.head )
     #end
 
     #if( $headContent )$headContent#end

Reply via email to