truncate


Returns a specific number of characters from a string


Syntax


{{ <Parameter> | truncate: <Truncate>[, <Append>] }}



Arguments

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


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


Append - An optional string value that will be appended to the end of the parameter after truncation occurs.


Example 1:

InputParameter Value


'Four score and seven years ago'



Input


{{ InputParameter | truncate: 5}}



Output


'Four '



Example 2:

Input


{{ 'This is fifteen' | truncate: 8, 'SPARTA'}}



Output


'This is SPARTA'