Skip to content

v1.5.1

Choose a tag to compare

@github-actions github-actions released this 13 Oct 07:31
· 14 commits to main since this release

Fixed

  • Comparing values of different types, the classic {{if gt .count 2}} with a
    JSON number (float64 against the template's int) or a CSV text value
    against a number, now explains the cause and the fix (2.0 or
    (toInt .count)) instead of a generic hint. Comparing a list or an object,
    and a comparison with a missing argument, get their own hints too.
  • The function reference shows that add, sub, mul, div, mod, max
    and min drop decimals ({{mul "12.50" 2}} is 24) and points to the
    ...f functions for decimal values.