Skip to content

Commit

Permalink
Merge pull request #110 from mkantor/upgrade-handlebars
Browse files Browse the repository at this point in the history
Upgrade handlebars to 5.x.
  • Loading branch information
mkantor authored May 22, 2024
2 parents 11a8542 + 76c9dad commit 953c53b
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 80 deletions.
86 changes: 43 additions & 43 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 @@ -26,7 +26,7 @@ actix-web = "3.3.3"
anyhow = "1.0.83"
bytes = "0.5.6"
futures = "0.3.30"
handlebars = "4.5.0"
handlebars = "5.1.2"
log = "0.4.21"
mime = "0.3.17"
mime_guess = "2.0.4"
Expand Down
2 changes: 1 addition & 1 deletion src/content/content_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use thiserror::Error;
#[derive(Error, Debug)]
#[error(
"Failed to register handlebars template{}.",
.source.template_name.as_ref().map(|known_name| format!(" '{}'", known_name)).unwrap_or_default(),
.source.name().map(|known_name| format!(" '{}'", known_name)).unwrap_or_default(),
)]
pub struct TemplateError {
#[from]
Expand Down
5 changes: 1 addition & 4 deletions src/content/content_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ use thiserror::Error;
/// Indicates that there was an error during rendering.
#[derive(Error, Debug)]
pub enum RenderingFailedError {
#[error(
"Rendering failed for handlebars template: {}",
.source
)]
#[error(transparent)]
TemplateRenderError {
#[from]
source: handlebars::RenderError,
Expand Down
Loading

0 comments on commit 953c53b

Please sign in to comment.