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