Jinja Compat Tests

Enabled engines

batch filter

Template

{% for row in items|batch(3, '-') -%}
    {% for column in row %} {{ column }} {% endfor %} |
{% endfor %}

Data

{
  "items": ["a", "b", "c", "d", "e", "f", "g"]
}

(error) v1.10.1

'for' statements should use the format 'for x in y': for row in items|batch(3, '-') -

v2.8.0

 a  b  c  |
 d  e  f  |
 g  -  -  |

v3.0.6


     a  |

     b  |

     c  |

     d  |

     e  |

     f  |

     g  |

v2.5.0

 a  b  c  |
 d  e  f  |
 g  -  -  |

(error) v1.4.2

Invalid filter "batch".

v1.24.2

 a  b  c  |
 d  e  f  |
 g  -  -  |

v0.9.5

 a  b  c  |
 d  e  f  |
 g  -  -  |

Template

{% for row in items|batch(3) -%}
    {% for column in row %} {{ column }} {% endfor %} |
{% endfor %}

Data

{
  "items": ["a", "b", "c", "d", "e", "f", "g"]
}

(error) v1.10.1

'for' statements should use the format 'for x in y': for row in items|batch(3) -

v2.8.0

 a  b  c  |
 d  e  f  |
 g  |

v3.0.6


     a  |

     b  |

     c  |

     d  |

     e  |

     f  |

     g  |

v2.5.0

 a  b  c  |
 d  e  f  |
 g  |

(error) v1.4.2

Invalid filter "batch".

v1.24.2

 a  b  c  |
 d  e  f  |
 g  |

v0.9.5

 a  b  c  |
 d  e  f  |
 g  |