1
0
mirror of https://github.com/actix/examples synced 2025-02-02 09:39:03 +01:00

Update yarte version to 0.7

This commit is contained in:
Juan Aguilar Santillana 2020-03-16 12:04:11 +01:00
parent 8f3ce39d05
commit 99e9d70225
2 changed files with 3 additions and 3 deletions

View File

@ -10,10 +10,10 @@ workspace = ".."
[dependencies]
env_logger = "0.7"
yarte = { version = "0.6", features = ["with-actix-web"] }
yarte = { version = "0.7", features = ["with-actix-web"] }
actix-rt = "1.0"
actix-web = "2.0.0"
[build-dependencies]
yarte = { version = "0.6", features = ["with-actix-web"] }
yarte = { version = "0.7", features = ["with-actix-web"] }

View File

@ -4,7 +4,7 @@ use actix_web::{get, middleware::Logger, web, App, HttpServer, Responder};
use yarte::Template;
#[derive(Template)]
#[template(path = "index.hbs", err = "Some error message")]
#[template(path = "index.hbs", err = "Some error message", mode = "html-min")]
struct IndexTemplate {
query: web::Query<HashMap<String, String>>,
}