Update Tera to 0.8.

This commit is contained in:
Sergio Benitez 2017-03-23 15:28:49 -07:00
parent d2c49e02c3
commit 605e8fdc0e
2 changed files with 2 additions and 2 deletions

View File

@ -37,4 +37,4 @@ rmp-serde = { version = "^0.12", optional = true }
handlebars = { version = "^0.25", optional = true, features = ["serde_type"] }
glob = { version = "^0.2", optional = true }
lazy_static = { version = "^0.2", optional = true }
tera = { version = "^0.7", optional = true }
tera = { version = "^0.8", optional = true }

View File

@ -53,7 +53,7 @@ pub fn render<T>(name: &str, _: &TemplateInfo, context: &T) -> Option<String>
return None;
};
match tera.value_render(name, context) {
match tera.render(name, context) {
Ok(string) => Some(string),
Err(e) => {
error_!("Error rendering Tera template '{}'.", name);