askama is so good https://github.com/djc/askama
i just had to make a filter and it's just having a "filters" module in scope with functions in it. rustic.
it's rendered by the compiler and with the safety guarantees of regular rust. probably the fastest at runtime jinja implementation ever made idk