mirror of https://github.com/rwf2/Rocket.git
Make tera/handlebars rendering a little clearer.
This commit is contained in:
parent
2aad1d876b
commit
876a8b8329
|
@ -29,7 +29,7 @@ impl Engine for Handlebars {
|
|||
return None;
|
||||
}
|
||||
|
||||
match self.render(name, &context) {
|
||||
match Handlebars::render(self, name, &context) {
|
||||
Ok(string) => Some(string),
|
||||
Err(e) => {
|
||||
error_!("Error rendering Handlebars template '{}': {}", name, e);
|
||||
|
|
|
@ -37,7 +37,7 @@ impl Engine for Tera {
|
|||
return None;
|
||||
};
|
||||
|
||||
match self.render(name, &context) {
|
||||
match Tera::render(self, name, &context) {
|
||||
Ok(string) => Some(string),
|
||||
Err(e) => {
|
||||
error_!("Error rendering Tera template '{}'.", name);
|
||||
|
|
Loading…
Reference in New Issue