diff --git a/minijinja-contrib/src/lib.rs b/minijinja-contrib/src/lib.rs index 2f9c6b9c..c5f40636 100644 --- a/minijinja-contrib/src/lib.rs +++ b/minijinja-contrib/src/lib.rs @@ -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);