askama
askama copied to clipboard
Type-safe, compiled Jinja-like templates for Rust
Since https://github.com/djc/askama/pull/568 hasn't had an update in a long time, and it is a nice feature, this is a new PR to implement the proposed changes from that discussion. This...
Hi, I just started to test askama but Im having all sorts of problems with integers within a template file. For example, the following code: ``` {% for solution in...
``` {{ -2|abs }} ``` is not the same as ``` {{ -2 | abs }} ``` and it's quite a huge issue as there is no reason for that...
Hi, I have this MRE: ``` use askama::Template; #[derive(Template)] #[template(ext = "txt", source = r#" {% let a = 51 %} // works {% let a = 51 as i64...
I need to compute the string values out of a slice of Messages by filtering and mapping. At the end of the chain, I have an `std::iter::Map` which can be...
Hi, I stumbled upon the template() attribute doc, which states > `ext` (as ext = "txt"): lets you specify the content type as a file extension [...]. _Cannot be used...
Currently, we support tuple, path, name, and various literals, but not ranges. Add support for a `Target::Range` variant.
I am trying to use askama for generating emails, where both the subject and the body depends on the input variables. How hard would it be to implement the ability...
Fuzzer: ```sh cargo run --bin fuzz -r -- --progress ``` Benchmark: ```sh cargo bench --bench min-size ``` Standalone parser: ```sh cargo run --bin parse -- --input /some/file.jinja2 ``` ~~WIP:~~ *...
This is the first set of changes extracted from #782. These changes focus on clarifying the semantics of the whitespace of each `Node`. This PR refrains from abstracting out the...