Skip to content

Commit 9b0e527

Browse files
committed
upgrade to latest handlebars.js 4.7.6
1 parent 9c3fabf commit 9b0e527

8 files changed

Lines changed: 5227 additions & 5227 deletions

File tree

handlebars-maven-plugin/src/main/java/com/github/jknack/handlebars/maven/PrecompilePlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public class PrecompilePlugin extends HandlebarsPlugin {
113113
/**
114114
* The handlebars js file.
115115
*/
116-
@Parameter(defaultValue = "/handlebars-v4.7.3.js")
116+
@Parameter(defaultValue = "/handlebars-v4.7.6.js")
117117
private String handlebarsJsFile;
118118

119119
/**

handlebars-maven-plugin/src/test/java/com/github/jknack/handlebars/maven/Issue234.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void withAmdOutput() throws Exception {
2424
plugin.addTemplate("c");
2525
plugin.setAmd(true);
2626
plugin.setProject(newProject());
27-
plugin.setHandlebarsJsFile("/handlebars-v4.7.3.js");
27+
plugin.setHandlebarsJsFile("/handlebars-v4.7.6.js");
2828

2929
plugin.execute();
3030

handlebars-maven-plugin/src/test/java/com/github/jknack/handlebars/maven/PrecompilePluginTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void i18nJs() throws Exception {
2727
plugin.setSuffix(".html");
2828
plugin.setOutput("target/helpers-i18njs.js");
2929
plugin.setProject(newProject());
30-
plugin.setHandlebarsJsFile("/handlebars-v4.7.3.js");
30+
plugin.setHandlebarsJsFile("/handlebars-v4.7.6.js");
3131

3232
plugin.execute();
3333

@@ -45,7 +45,7 @@ public void chooseSpecificFiles() throws Exception {
4545
plugin.addTemplate("a");
4646
plugin.addTemplate("c");
4747
plugin.setProject(newProject());
48-
plugin.setHandlebarsJsFile("/handlebars-v4.7.3.js");
48+
plugin.setHandlebarsJsFile("/handlebars-v4.7.6.js");
4949

5050
plugin.execute();
5151

@@ -61,7 +61,7 @@ public void outputDirMustBeCreated() throws Exception {
6161
plugin.setSuffix(".html");
6262
plugin.setOutput("target/newdir/helpers.js");
6363
plugin.setProject(newProject());
64-
plugin.setHandlebarsJsFile("/handlebars-v4.7.3.js");
64+
plugin.setHandlebarsJsFile("/handlebars-v4.7.6.js");
6565

6666
plugin.execute();
6767
}
@@ -73,7 +73,7 @@ public void missingHelperMustBeSilent() throws Exception {
7373
plugin.setSuffix(".html");
7474
plugin.setOutput("target/missing-helpers.js");
7575
plugin.setProject(newProject());
76-
plugin.setHandlebarsJsFile("/handlebars-v4.7.3.js");
76+
plugin.setHandlebarsJsFile("/handlebars-v4.7.6.js");
7777

7878
plugin.execute();
7979
}
@@ -85,7 +85,7 @@ public void noFileMustBeCreatedIfNoTemplatesWereFound() throws Exception {
8585
plugin.setSuffix(".html");
8686
plugin.setOutput("target/no-helpers.js");
8787
plugin.setProject(newProject());
88-
plugin.setHandlebarsJsFile("/handlebars-v4.7.3.js");
88+
plugin.setHandlebarsJsFile("/handlebars-v4.7.6.js");
8989

9090
plugin.execute();
9191

@@ -127,7 +127,7 @@ public void mustFailOnUnExpectedException() throws Exception {
127127
plugin.setSuffix(".html");
128128
plugin.setOutput("target/no-helpers.js");
129129
plugin.setProject(project);
130-
plugin.setHandlebarsJsFile("/handlebars-v4.7.3.js");
130+
plugin.setHandlebarsJsFile("/handlebars-v4.7.6.js");
131131

132132
plugin.execute();
133133
}
@@ -139,7 +139,7 @@ public void fileWithRuntimeMustBeLargerThanNormalFiles() throws Exception {
139139
withoutRT.setSuffix(".html");
140140
withoutRT.setOutput("target/without-rt-helpers.js");
141141
withoutRT.setProject(newProject());
142-
withoutRT.setHandlebarsJsFile("/handlebars-v4.7.3.js");
142+
withoutRT.setHandlebarsJsFile("/handlebars-v4.7.6.js");
143143

144144
withoutRT.execute();
145145

@@ -149,7 +149,7 @@ public void fileWithRuntimeMustBeLargerThanNormalFiles() throws Exception {
149149
withRT.setOutput("target/with-rt-helpers.js");
150150
withRT.setRuntime("src/test/resources/handlebars.runtime.js");
151151
withRT.setProject(newProject());
152-
withRT.setHandlebarsJsFile("/handlebars-v4.7.3.js");
152+
withRT.setHandlebarsJsFile("/handlebars-v4.7.6.js");
153153

154154
withRT.execute();
155155

@@ -165,7 +165,7 @@ public void normalFileShouleBeLargerThanMinimizedFiles() throws Exception {
165165
withoutRT.setSuffix(".html");
166166
withoutRT.setOutput("target/helpers-normal.js");
167167
withoutRT.setProject(newProject());
168-
withoutRT.setHandlebarsJsFile("/handlebars-v4.7.3.js");
168+
withoutRT.setHandlebarsJsFile("/handlebars-v4.7.6.js");
169169

170170
withoutRT.execute();
171171

@@ -175,7 +175,7 @@ public void normalFileShouleBeLargerThanMinimizedFiles() throws Exception {
175175
withRT.setOutput("target/helpers.min.js");
176176
withRT.setMinimize(true);
177177
withRT.setProject(newProject());
178-
withRT.setHandlebarsJsFile("/handlebars-v4.7.3.js");
178+
withRT.setHandlebarsJsFile("/handlebars-v4.7.6.js");
179179
withRT.execute();
180180

181181
assertTrue("Normal file must be larger than minimized",
@@ -190,7 +190,7 @@ public void partials() throws Exception {
190190
plugin.setSuffix(".html");
191191
plugin.setOutput("target/helpers.js");
192192
plugin.setProject(newProject());
193-
plugin.setHandlebarsJsFile("/handlebars-v4.7.3.js");
193+
plugin.setHandlebarsJsFile("/handlebars-v4.7.6.js");
194194

195195
plugin.execute();
196196

handlebars-springmvc/src/main/java/com/github/jknack/handlebars/springmvc/HandlebarsViewResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ public void setFormatters(final Formatter... formatters) {
371371
*
372372
* <pre>
373373
* Handlebars handlebars = new Handlebars()
374-
* .handlebarsJsFile("handlebars-v4.7.3.js");
374+
* .handlebarsJsFile("handlebars-v4.7.6.js");
375375
* </pre>
376376
*
377-
* Default handlebars.js is <code>handlebars-v4.7.3.js</code>.
377+
* Default handlebars.js is <code>handlebars-v4.7.6.js</code>.
378378
*
379379
* @param location A classpath location of the handlebar.js file.
380380
*/

handlebars/src/main/java/com/github/jknack/handlebars/Handlebars.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public static CharSequence escapeExpression(final CharSequence input) {
313313
private String endDelimiter = DELIM_END;
314314

315315
/** Location of the handlebars.js file. */
316-
private String handlebarsJsFile = "/handlebars-v4.7.3.js";
316+
private String handlebarsJsFile = "/handlebars-v4.7.6.js";
317317

318318
/** List of formatters. */
319319
private List<Formatter> formatters = new ArrayList<>();

0 commit comments

Comments
 (0)