Skip to main content

after_line

Returns a string which is the subset of all lines of haystack after line number line_number and not including line number line_number itself. If `haystack` contains fewer than line_number number of lines, will return an empty string.

Usage

{{after_line text line_number flags="t"}}

Arguments

haystack
The input string.

line_number
The boundary line number.

flags

  • t: trim the final result prior to returning (remove all whitespace from beginning and end)

Examples

Return a single line

{{after_line email.body '2' flags='t'}}
Line 3.
Line 4.

Return no lines when requested line doesn't exist

{{after_line email.body '15' flags='t'}}