Skip to content

Commit

Permalink
(fix) deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Jan 21, 2018
1 parent c2f5308 commit 58ae8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl AfterMiddleware for HandlebarsEngine {
TemplateRenderError::from,
))
} else if let Some(ref content) = h.content {
Some(hbs.template_render(content, &h.value))
Some(hbs.render_template(content, &h.value))
} else {
None
}
Expand Down

0 comments on commit 58ae8cc

Please sign in to comment.