Allow commas to separate for tag attributes (#1658)

For consistency with tags like the `render` tag, where we actually
prefer to use commas to separate attributes
This commit is contained in:
Dylan Thacker-Smith
2022-11-29 09:00:55 -05:00
committed by GitHub
parent 9ccbf64571
commit c2c6cb2b15
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -103,6 +103,7 @@ HERE
assert_template_result('1234', '{%for i in array limit:4 %}{{ i }}{%endfor%}', assigns)
assert_template_result('3456', '{%for i in array limit:4 offset:2 %}{{ i }}{%endfor%}', assigns)
assert_template_result('3456', '{%for i in array limit: 4 offset: 2 %}{{ i }}{%endfor%}', assigns)
assert_template_result('3456', '{%for i in array, limit: 4, offset: 2 %}{{ i }}{%endfor%}', assigns)
end
def test_limiting_with_invalid_limit