-
By writing a couple of [Askama filters](https://docs.rs/askama/0.8.0/askama/filters/index.html) we should be able to cut down on boilerplate in the HTML templates
-
As mentioned in https://github.com/djc/askama/issues/192, I think we should make a `|yaml` filter that serializes to real YAML, instead of abusing the `|json` one (currently results in really not-very…
-
## main.rs
```
use actix_web::{get, Responder, HttpServer, App};
use askama_actix::Template;
#[derive(Template)]
#[template(path = "index.html")]
struct IndexTemplate impl Responder {
Ind…
ghost updated
2 years ago
-
I have some shared state where I'd like to take the lock, render the template and release the lock all ideally without too much stuff being copied around. For example:
```rust
use std::collections…
mensi updated
4 years ago
-
I ran into this issue with trying to use
```rust
use askama::Template;
struct Node {
data: String,
children: Vec,
}
#[derive(Template)]
#[template(path = "index.html", print = "cod…
-
For some reason, askama won't use references of the inner collection when using macros, resulting in a compiler error
```
error[E0507]: cannot move out of `foo.list` which is behind a shared refer…
msrd0 updated
2 years ago
-
Currently, we have multiple macros with `ffi_func` in the name, but which take a `func`.
e.g.
```
{%- macro to_ffi_call_with_prefix(prefix, func) %}
{%- macro _arg_list_ffi_call(func) %}
```
This …
-
-
I would want to have the feature.html template be in the same folder as feature.rs.
It would be cool if you could do either one of:
A)
```rs
pub static FEATURE_TEMPLATE_HTML: &'static str…
-
The Tailwind team created a prettier plugin that automatically sorts Tailwind utility classes in a defined order (). This has the advantage of not having to think about what order the classes should b…