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 Sept. 16, 2020, 7:34 p.m. EST