Outputs the number of words in a value.
Variable
blurb = 'You are pretty smart!'
Template
{{ blurb|wordcount }}
Result
4
Outputs the number of words in a value.
blurb = 'You are pretty smart!'
{{ blurb|wordcount }}
4
Did we get something wrong? Is there a use case for the
wordcount
filter that we should add?
Please let us know.
Commentary
If you need it, it is there.