pongo2
pongo2 copied to clipboard
lexical string comparison
I think we should implement lexical string comparison for the >
/<
/>=
/<=
operators,
instead of trying to parse them as integer.
Currently the string comparison is inconsistent, because we attempt to parse the string to an integer.
The result is not the same at all if the string contains an integer or something else.
Jinja2, Django and Twig all use lexical comparison for these operators.
WDYT ?
Hello ! Any news about that ? Does it seem to be a reasonable behavior ?