Modifiers

reading_time

The reading_time modifier estimates reading time from a text value.

Example#

php
{{ content | reading_time }} min read

By default, TemplateX uses 200 words per minute. Pass a positive number to change it:

php
{{ content | reading_time(250) }} min read