Juan Aguilar Santillana
Juan Aguilar Santillana
https://github.com/rust-lang/rust/issues/31844
The following filters are not viable in Rust: attr, default, dictsort, groupby, map, pprint, rejectattr, selectattr, sum and xmlattr. Some can be done directly in Rust on the template and...
It's because they are filters for Python dictionaries and it has no sense in Rust.
Since templates live within the response function, allocating it inside the heap is a serious performance issue. You can test the Tera filters that use `HashMap` with frightening results in...
It does not solve this issue, but I think it is similar. In the test I will put several recursives included, that is, two more templates and [included.html](https://github.com/djc/askama/blob/master/testing/templates/included.html). I will...
@mashedcode The tests work correctly, give me the exact use case please.
I guess this structure is different from the template? In principle the tests, and pick up this case, with an [nested slice](https://github.com/djc/askama/pull/115/commits/759568b7d8f059995b3c97df29445080521c4c19#diff-28252b3eea0bd1176cd4b63b6eaafeabR40). Anyway now I add this.
I understand that is this [case](https://gist.github.com/botika/2b618e79267d89a87a222a98bdb57d1c)? That case and all that occurs a recursion loop of includes returns error at overflow multiply. This is the case? since you say that...
The same thing happens with macros. But I do not see the behavior in [pallet/jinja](https://github.com/pallets/jinja/blob/master/tests/test_regression.py). And for recursive macros or loops they use a different syntax. It is difficult to...
For me yes, but the peevish nodejs dislikes, as it says Error: You must use the name of an existing instance.