Adds characters to the right side of a string up to the maximum length.
Input
{{ "1" | rpad: 3 }}
Output
1
rpad
supports an optional character parameter. The character parameter specifies the character used to pad the source string. If not specified, then space will be used.
Input
{{ "1" | rpad: 3, "0" }}
Output
100