mirror of
https://github.com/actix/examples
synced 2025-01-22 22:05:57 +01:00
commit
4c9ec8b533
@ -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"] }
|
||||
|
@ -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>>,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user