6 Commits

Author SHA1 Message Date
René Kijewski
f564e724e1 Revive askama_escaped
We adopted `askama_escape` with the other askama crates. It was not
updated for quite some time, but still gets 25k+ downloads / day Mon to
Fri.

This PR re-adds the crate using our current HTML escaping function.
2025-03-21 22:45:25 +01:00
René Kijewski
f2ed85812e ci: ignore typos in librustdoc sources
We copied the sources verbatim, so it's no use to fix any typos.

Also, "typ" is not really a typo in here, because "type" would not have
been a valid identifier.
2025-03-11 19:44:10 +01:00
Guillaume Gomez
3b52c907c3 Rename rinja into askama 2025-03-11 19:31:06 +01:00
René Kijewski
84edf1cc77 Replace from_utf8_unsafe() with AsciiStr
This moves many unsafe block into one file.
2025-02-11 00:37:40 +01:00
René Kijewski
4b8bd45844 parser: use drop guards to track nesting level
Not for all operations the nesting level was incremented when needed
and/or the un-incremented nesting level was used in subfunction calls.
Binary operators such as `*` did not properly increment the nesting
level.

This PR changes `Level` in such a way that it can be used to keep track
of the nesting level when used in a loop. It is now impossible to
accidentally refer to an old nesting level value.

Resolves <https://issues.oss-fuzz.com/issues/385256115>.
2024-12-27 04:31:24 +01:00
René Kijewski
acd6a48557 ci: fix a few typos and add check
This PR adds `_typos.toml`, which lets `typos` ignore generated data.
Some filler texts are "fixed", too. It does not matter what the actual
text is.
2024-08-30 17:01:13 +02:00