for
and tablerow
tag arguments
#78
Labels
incompatibility
Behavioural differences between Python and Ruby Liquid
for
and tablerow
tag arguments
#78
Python Liquid's
{% for %}
and{% tablerow %}
tags only accept integers (and variables that resolve to integers) as values forcols
,offset
andlimit
. String representations of numbers and floats should be acceptable too.If a string arguments is given and that string can not be cast to an integer, a default value is used. The default value differs for each argument and/or tag.
There's also some inconsistent behaviour in the reference implementation when handling objects that do not have a
to_i
method. This requires further investigation.The text was updated successfully, but these errors were encountered: