wordcount Filter

Number

Documentation

Outputs the number of words in a value.

Variable

blurb = 'You are pretty smart!'

Template

{{ blurb|wordcount }}

Result

4

Commentary

If you need it, it is there.


Did we get something wrong? Is there a use case for the wordcount filter that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on Oct. 30, 2022, 1:21 p.m. EST