1
0
mirror of https://github.com/actix/examples synced 2025-01-22 22:05:57 +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]
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>>,
}