Skip to content

Commit f6438b7

Browse files
committed
Upgrade handlebars to 4.1.0.
The whitespace changes in tests are because of this bugfix: <sunng87/handlebars-rust#448>.
1 parent 8ff1274 commit f6438b7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ actix-web = "3.3.2"
3535
anyhow = "1.0.41"
3636
bytes = "0.5.6"
3737
futures = "0.3.15"
38-
handlebars = "4.0.0"
38+
handlebars = "4.1.0"
3939
log = "0.4.14"
4040
mime = "0.3.16"
4141
mime_guess = "2.0.3"

src/content/content_engine.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ mod tests {
505505

506506
let template = "this is partial: {{> abc.html.hbs}}";
507507
let expected_output =
508-
"this is partial: a\nb\n\nc\n\nsubdirectory entries:\n/subdirectory/c";
508+
"this is partial: a\nb\nc\n\nsubdirectory entries:\n/subdirectory/c\n";
509509

510510
let renderable = content_engine
511511
.new_template(
@@ -536,7 +536,7 @@ mod tests {
536536
let content_engine = shared_content_engine.read().unwrap();
537537

538538
let route = route("/abc");
539-
let expected_output = "a\nb\n\nc\n\nsubdirectory entries:\n/subdirectory/c";
539+
let expected_output = "a\nb\nc\n\nsubdirectory entries:\n/subdirectory/c\n";
540540

541541
let content = content_engine
542542
.get(&route)

tests/snapshots/integration_tests__partials.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ input_file: samples/partials
55

66
---
77
a.html.hbs: "a\n"
8-
ab.html.hbs: "a\nb\n\n"
9-
abc.html.hbs: "a\nb\n\nc\n\nsubdirectory entries:\n/subdirectory/c"
8+
ab.html.hbs: "a\nb\n"
9+
abc.html.hbs: "a\nb\nc\n\nsubdirectory entries:\n/subdirectory/c\n"
1010
b.html: "b\n"
11-
subdirectory.html.hbs: "subdirectory entries:\n/subdirectory/c"
11+
subdirectory.html.hbs: "subdirectory entries:\n/subdirectory/c\n"
1212
subdirectory/c.html.hbs: "c\n"
1313

0 commit comments

Comments
 (0)