From 605e8fdc0efbcd76ef2ea4d6d9599f5e97024867 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 23 Mar 2017 15:28:49 -0700 Subject: [PATCH] Update Tera to 0.8. --- contrib/Cargo.toml | 2 +- contrib/src/templates/tera_templates.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/Cargo.toml b/contrib/Cargo.toml index 1524ed58..d1becfc1 100644 --- a/contrib/Cargo.toml +++ b/contrib/Cargo.toml @@ -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 } diff --git a/contrib/src/templates/tera_templates.rs b/contrib/src/templates/tera_templates.rs index 2e7e440d..581f1ae8 100644 --- a/contrib/src/templates/tera_templates.rs +++ b/contrib/src/templates/tera_templates.rs @@ -53,7 +53,7 @@ pub fn render(name: &str, _: &TemplateInfo, context: &T) -> Option 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);