truncatewords


Returns a specific number of words from a string


Syntax


{{ <Parameter> | truncate: <Truncate>}}



Arguments

Parameter - A string literal or name of the input parameter to be truncated


Truncate - An integer value representing the amount of words to include before truncating the rest


Example 1:

InputParameter Value


'Four score and seven years ago'



Input


{{ InputParameter | truncate: 3}}



Output


'Four score and'



Example 2:

Input


{{ 'This is fifteen' | truncate: 2}}



Output


'This is'