askama icon indicating copy to clipboard operation
askama copied to clipboard

Type-safe, compiled Jinja-like templates for Rust

Results 175 askama issues
Sort by recently updated
recently updated
newest added

An smaller PR, with basic functionality of #841 , but with some important differences: 1. Only sections of code that use the optional `i18n` dependencies are feature gated. The `Expr`...

In a lot of cases, we emit errors when generating the Rust code in the proc-macro, however we only emit an error without showing where it comes from in the...

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...

This makes `include` work [more like in Jinja2 ](https://jinja.palletsprojects.com/en/3.1.x/templates/#include), and closes (#572). This also improves caching of included templates by storing them inside the `contexts` map.

Hello, my project structure from beginning of the root directory like this: the file which template struct exist: routemodels -> src -> lib.rs the folder that actual templates exist: pages...

It's currently not possible to use `import` or to declare `macro` if it's not in the top level, which is very quickly problematic in case you have includes and equivalents....

I don't know if I asked a stupid question, but I spend one day to find it ! my rust version is 1.74.0, I run it on my win11 and...

``` # rust struct Foo {} impl Foo { fn baz() -> String { String::from("I should get rendered!") } } # template Let's baz! {% Foo::::baz() %} ``` The above...

In memory of my old issue/feature request in https://github.com/djc/askama/issues/488, here is finally the implementation of it. Tests are included of cause. ~~I have (not yet) updated the documentation for it....

Hi, I'm trying to use askama to generate YAML files, and I was trying to import a common part of YAML file into multiple templates. That works fine using the...