Skip to content

Commit

Permalink
Upgrade handlebars to 4.1.0.
Browse files Browse the repository at this point in the history
The whitespace changes in tests are because of this bugfix:
<sunng87/handlebars-rust#448>.
  • Loading branch information
mkantor committed Jul 14, 2021
1 parent 8ff1274 commit f6438b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ actix-web = "3.3.2"
anyhow = "1.0.41"
bytes = "0.5.6"
futures = "0.3.15"
handlebars = "4.0.0"
handlebars = "4.1.0"
log = "0.4.14"
mime = "0.3.16"
mime_guess = "2.0.3"
Expand Down
4 changes: 2 additions & 2 deletions src/content/content_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ mod tests {

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

let renderable = content_engine
.new_template(
Expand Down Expand Up @@ -536,7 +536,7 @@ mod tests {
let content_engine = shared_content_engine.read().unwrap();

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

let content = content_engine
.get(&route)
Expand Down
6 changes: 3 additions & 3 deletions tests/snapshots/integration_tests__partials.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ input_file: samples/partials

---
a.html.hbs: "a\n"
ab.html.hbs: "a\nb\n\n"
abc.html.hbs: "a\nb\n\nc\n\nsubdirectory entries:\n/subdirectory/c"
ab.html.hbs: "a\nb\n"
abc.html.hbs: "a\nb\nc\n\nsubdirectory entries:\n/subdirectory/c\n"
b.html: "b\n"
subdirectory.html.hbs: "subdirectory entries:\n/subdirectory/c"
subdirectory.html.hbs: "subdirectory entries:\n/subdirectory/c\n"
subdirectory/c.html.hbs: "c\n"

0 comments on commit f6438b7

Please sign in to comment.