The trimLeft helper removes leading whitespace from the beginning of a string, leaving trailing whitespace unchanged. Use it when trailing spaces are meaningful but leading spaces should be discarded.
Syntax
{{trimLeft value}}
value -- The string to process. Required.
Examples
Remove leading spaces from a string
{{trimLeft record.text}}
Input:
{ "record": { "text": " ABC " } }
Output: ABC (leading spaces removed, trailing space preserved)
Usage notes
- Only leading whitespace is removed. Trailing whitespace and interior spaces are not affected.
- To remove trailing whitespace instead, use the trimRight helper.
- To remove both leading and trailing whitespace, use the trim helper.