diff --git a/pom.xml b/pom.xml
index 8bb67c5..c9fb67b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,18 +11,20 @@
UTF-8
- 1.11.2
+ 1.22
benchmarks
- 2.2.0
- 0.9.1
- 2.3.23
- 1.7
- 2.1.4.RELEASE
+ 3.1.2
+ 0.9.6
+ 2.3.29
+ 2.1
+ 3.0.11.RELEASE
4.12
- 1.8.2.Final
- 4.0.1
- 0.10.3
+ 2.5.0.Final
+ 4.1.2
+ 1.2.2
+
+
@@ -45,10 +47,10 @@
maven-compiler-plugin
- 3.1
+ 3.8.1
-
- 1.7
+
+ 1.8
@@ -121,7 +123,7 @@
- com.mitchellbosecke
+ io.pebbletemplates
pebble
${pebble.version}
@@ -137,7 +139,7 @@
org.apache.velocity
- velocity
+ velocity-engine-core
${velocity.version}
diff --git a/src/main/java/com/mitchellbosecke/benchmark/Freemarker.java b/src/main/java/com/mitchellbosecke/benchmark/Freemarker.java
index 8e5d965..1c80afb 100644
--- a/src/main/java/com/mitchellbosecke/benchmark/Freemarker.java
+++ b/src/main/java/com/mitchellbosecke/benchmark/Freemarker.java
@@ -21,7 +21,7 @@ public class Freemarker extends BaseBenchmark {
@Setup
public void setup() throws IOException {
- Configuration configuration = new Configuration(Configuration.VERSION_2_3_22);
+ Configuration configuration = new Configuration(Configuration.VERSION_2_3_29);
configuration.setTemplateLoader(new ClassTemplateLoader(getClass(), "/"));
template = configuration.getTemplate("templates/stocks.freemarker.html");
this.context = getContext();
diff --git a/src/main/resources/templates/stocks.thymeleaf.html b/src/main/resources/templates/stocks.thymeleaf.html
index a1667f6..9bb4d8a 100755
--- a/src/main/resources/templates/stocks.thymeleaf.html
+++ b/src/main/resources/templates/stocks.thymeleaf.html
@@ -55,7 +55,7 @@ Stock Prices
+ th:class="${itemStat.odd}? 'odd' : 'even'">
|
|
diff --git a/src/main/resources/templates/stocks.velocity.html b/src/main/resources/templates/stocks.velocity.html
index c3217ce..ab02f8a 100755
--- a/src/main/resources/templates/stocks.velocity.html
+++ b/src/main/resources/templates/stocks.velocity.html
@@ -54,9 +54,9 @@ Stock Prices
#foreach($item in $items)
- #if($velocityCount % 2 == 0) #set($klass = "even") #else #set($klass = "odd") #end
+ #if($foreach.count % 2 == 0) #set($klass = "even") #else #set($klass = "odd") #end
- ${velocityCount} |
+ ${foreach.count} |
${item.symbol}
|