1
0
mirror of https://github.com/actix/examples synced 2025-01-23 06:14:35 +01:00

Merge pull request #271 from botika/master

Update yarte version to 0.7
This commit is contained in:
Yuki Okushi 2020-03-17 08:26:00 +09:00 committed by GitHub
commit 4c9ec8b533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -10,10 +10,10 @@ workspace = ".."
[dependencies] [dependencies]
env_logger = "0.7" 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-rt = "1.0"
actix-web = "2.0.0" actix-web = "2.0.0"
[build-dependencies] [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; use yarte::Template;
#[derive(Template)] #[derive(Template)]
#[template(path = "index.hbs", err = "Some error message")] #[template(path = "index.hbs", err = "Some error message", mode = "html-min")]
struct IndexTemplate { struct IndexTemplate {
query: web::Query<HashMap<String, String>>, query: web::Query<HashMap<String, String>>,
} }