From 55e0b7af2959730d10a419ecc842a721c46e09c7 Mon Sep 17 00:00:00 2001 From: Tizian Schmidlin Date: Mon, 19 Feb 2018 13:55:58 +0100 Subject: [PATCH] Set dash as joiner element --- docs/templating.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/templating.md b/docs/templating.md index 73a0a75d..9f4698ec 100644 --- a/docs/templating.md +++ b/docs/templating.md @@ -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 %}