askama
askama copied to clipboard
Type-safe, compiled Jinja-like templates for Rust
I18n
This PR is based on the work of [jhoobergs](https://github.com/jhoobergs) and PR #434. I mainly just updated the code to work with the changes that have been made since the initial...
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...
Hi there - does anybody have any hints on how to configure either vim or IntelliJ so code formatting works. I am using the example template: ``` Hello, {{ name...
Hi, I'm experimenting with a setup where I have multiple binaries, and some shared code between all those binaries, including shared routes for HTML, rendered via askama. For example, I...
Lest the diff gets forgotten! :) This change was part of #594, but deferred until the next big release, because it breaks backward compatibility.
I'm loving askama so far, but I'm trying to build my first real web app 'the right way', and support localization from the start. I've never worked on localization before,...
Fixes https://github.com/djc/askama/issues/674. I realized that warnings were easy to ignore so I decided to turn it into an error. What do you think?
``` {% extends "_base.html" %} {% block head %}...{% endblock %} {% block head %}...{% endblock %} ``` should not compile with error message `Duplicate block "head" in page ...`.
While you probably won't have a lot of rust code inside templates, having the possibility to import e.g. a trait like `Borrow` (https://github.com/djc/askama/issues/330#issuecomment-1120411565). You currently have to `use` the trait...
Sometimes while working with deeply nested structures, it would be useful to create an alias to a field, like say `{% let h = &parent.child.hash %}` At the moment the...