mirror of https://github.com/rwf2/Rocket.git
Update Tera to 0.8.
This commit is contained in:
parent
d2c49e02c3
commit
605e8fdc0e
|
@ -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 }
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue