Hi !
Currently, number comparison functions only accept integer values:
|
handlebars_helper!(gt: |x: i64, y: i64| x > y); |
|
handlebars_helper!(gte: |x: i64, y: i64| x >= y); |
|
handlebars_helper!(lt: |x: i64, y: i64| x < y); |
|
handlebars_helper!(lte: |x: i64, y: i64| x <= y); |
It would be nice if they could compare any Json value with any other, or at least any number with any other.
initially reported in sqlpage/SQLPage#573
Hi !
Currently, number comparison functions only accept integer values:
handlebars-rust/src/helpers/helper_extras.rs
Lines 8 to 11 in ecef974
It would be nice if they could compare any Json value with any other, or at least any number with any other.
initially reported in sqlpage/SQLPage#573