Make tera/handlebars rendering a little clearer.

This commit is contained in:
Sergio Benitez 2017-06-16 20:56:51 -07:00
parent 2aad1d876b
commit 876a8b8329
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ impl Engine for Handlebars {
return None; return None;
} }
match self.render(name, &context) { match Handlebars::render(self, name, &context) {
Ok(string) => Some(string), Ok(string) => Some(string),
Err(e) => { Err(e) => {
error_!("Error rendering Handlebars template '{}': {}", name, e); error_!("Error rendering Handlebars template '{}': {}", name, e);

View File

@ -37,7 +37,7 @@ impl Engine for Tera {
return None; return None;
}; };
match self.render(name, &context) { match Tera::render(self, name, &context) {
Ok(string) => Some(string), Ok(string) => Some(string),
Err(e) => { Err(e) => {
error_!("Error rendering Tera template '{}'.", name); error_!("Error rendering Tera template '{}'.", name);