Gopher
FUNCTIONS

countwords

Counts the number of words in a string.

Syntax

countwords INPUT

The template function works similar to the .WordCount page variable .

{{ "Hugo is a static site generator." | countwords }}
<!-- outputs a content length of 6 words.  -->