Edit
Replace, wrap, shorten, and reshape strings.
Edit
concatJoins the value and every part into one string, in order, with no
separator.{{ name | concat:'-','01','.txt' }}replaceReplaces every occurrence of the old substring with the replacement in
the input.{{ text | replace:'world','everyone' }}replace_patternReplaces every match of the RE2 pattern in the input with the
replacement, which may reference capture groups with $1, $2 and so on.{{ name | replace_pattern:'(\w+), (\w+)','$2 $1' }}reverseReverses the input by rune, so multi-byte characters stay intact.{{ word | reverse }}shortenTruncates the input to at most a given number of bytes, returning it
unchanged when it is already shorter.{{ text | shorten:5 }}wrapNests the value inside a new single-entry map under the given key.{{ value | wrap:'name' }}