Skip to content

Commit

Permalink
Register the wordcount filter automatically in contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Nov 28, 2024
1 parent ef901c6 commit cb2acf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions minijinja-contrib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub fn add_to_environment(env: &mut Environment) {
env.add_filter("pluralize", filters::pluralize);
env.add_filter("filesizeformat", filters::filesizeformat);
env.add_filter("truncate", filters::truncate);
env.add_filter("wordcount", filters::wordcount);
#[cfg(feature = "datetime")]
{
env.add_filter("datetimeformat", filters::datetimeformat);
Expand Down

0 comments on commit cb2acf1

Please sign in to comment.