Additional template filters for the Askama templating library.
This library is intended to be used alongside Askama and is effectively useless without it.
Inside any module that is defining an Askama Template
just use askama_filters::filters;
and they will be available
in the HTML template.
If you wish to use this library in addition to your own filters
create a module named filters
and add use askama_filters::filters::*
to it. Then import that module wherever you are creating Template
s
and both sets of filters should be available.
This is a standard Rust project so just use:
sh
$ cargo build
Contributions are very welcome, feel free to open a pull request or an issue!