tera
tera copied to clipboard
A template engine for Rust based on Jinja2/Django
`super()` seems can not extend conditional parent blocks. ```jinja {# parent #} {%- if true %}{% block hey %}hello{% endblock hey %}{%- endif -%} {# child#} {% extends "parent" %}...
It should be possible to use a block multiple times in the template. This is possible in jinja2, because a block can be accessed through the special `self` variable as...
I am not sure if the current implementation supports reverse filters. Currently, the following is possible: ``` {{ posts | filter(attribute="author.name", value="Vincent") }} ``` Would there be an option to...
问题为:   或者是 后台返回过来的一个number类型的变量 ``` let len: u32 = 15; {% for in len %} xxxx {% endfor %} ```
When [profiling rustdoc with tera templates](https://github.com/rust-lang/rust/issues/89732#issuecomment-941966478), I see BTreeMap show up a lot. What's the reason for choosing BTreeMap over HashMap here? HashMap might be faster.
When [profiling rustdoc with tera templates](https://github.com/rust-lang/rust/issues/89732#issuecomment-941966478), CallStack::lookup shows up as a consuming a lot of time. When there's a dot in a variable (common in for loops: `{% for p...
HIya! I filed #641 earlier this year, and @Urgau quickly sent a pull request #643 to address it. Thanks so much! I should have been paying closer attention at the...
Hi there. First of all, thanks for the excellent work here! I'm looking for a way to dynamically add a *key/value* to a *map*. I tried everything that came to...
Is it possible to include a template and apply indentation? ### partial.template There's some file that contains some kind of template ```jinja2 some partial template ``` ### scope.template And there's...
It’s very common like this: ``` {% for thread in threads %} forum name: {{ forums[thread.fid].name }} {% endfor %} ``` but Tera does not support map, I have to...