Skip to content

Commit

Permalink
Set dash as joiner element
Browse files Browse the repository at this point in the history
  • Loading branch information
Tizian Schmidlin authored and fdintino committed Mar 5, 2019
1 parent c99154e commit 55e0b7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/templating.md
Expand Up @@ -926,8 +926,9 @@ Return a list of lists with the given number of items:

```jinja
{% set items = [1,2,3,4,5,6] %}
{% set dash = joiner("-") %}
{% for item in items | batch(2) %}
-{% for items in item %}
{{ dash() }} {% for items in item %}
{{ items }}
{% endfor %}
{% endfor %}
Expand Down

0 comments on commit 55e0b7a

Please sign in to comment.