-
During creating my actix-web + askama project I got the problem: I need different structs to be used together. For example, I need to render stuff like articles data, auth data, exchange rates or anyt…
-
Maud tends to discourage first-time contributors from touching the markup.
@netshade suggested [askama](https://github.com/djc/askama) as an alternative, providing type-safe, compile-time Jinja2-li…
-
I am following the master branch of askama and encountered the following error:
```
error: proc-macro derive panicked
--> src/templates.rs:6:10
|
6 | #[derive(Template)]
| ^^^^^^…
-
Hi djc,
not sure if this is a general rust issue or an implementation detail in askama (I might be just too silly to pass the right terms to my fav search engine).
```
#[derive(Template)];
str…
-
```
error[E0405]: cannot find trait `TraitFromapplications2fapi5cbase2ehtml` in this scope
--> manu\src\applications\api\views\default.rs:10:10
|
10 | #[derive(Template)]
| ^^^^^…
-
Errors from `error-chain` are not `Sync`, which can cause problems in some cases. E.g. if you want to/have to use `Failure` which requires `Send+Sync` bounds.
As `askama` doesn't really have many …
-
Hi!
I want to compile a rust application from a windows 10 machine targeting my "raspberry pi 3 model b" device. I've tried to follow the instructions to my best ability but have not been able to g…
-
I originally misattributed this issue first as https://github.com/japaric/cross/issues/193 and then as https://github.com/djc/askama/issues/72 but I have now found conclusively that simply using Askam…
ctsrc updated
6 years ago
-
In `askama/src/lib.rs` we find:
https://github.com/djc/askama/blob/36cbfd4bad8c3f534c8cb13f9ddbc463e1c44ef5/askama/src/lib.rs#L244-L248
I added `features = ["with-rocket"]` both in the `[depende…
ctsrc updated
6 years ago
-
```
let tmpl = DefaultTemplate { name: "world" };
let tmpl_body = tmpl.render().unwrap();
let layout = DefaultLayout { content: &tmpl_body };
let layout_body = layout.render().unwrap();
…