From 240421c7c4c81fe5df26274b807266bd4ca73d7f Mon Sep 17 00:00:00 2001 From: Jonathan Stròˆbele Date: Thu, 13 Feb 2025 16:23:29 +0100 Subject: Fixed #36186 -- Added forloop.length variable within a template for loop. --- docs/ref/templates/builtins.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 8851fd50ea..247f5e9890 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -423,10 +423,15 @@ Variable Description loop (0-indexed) ``forloop.first`` True if this is the first time through the loop ``forloop.last`` True if this is the last time through the loop +``forloop.length`` The length of the loop ``forloop.parentloop`` For nested loops, this is the loop surrounding the current one ========================== =============================================== +.. versionchanged:: 6.0 + + The variable ``forloop.length`` was added. + ``for`` ... ``empty`` --------------------- -- cgit v1.3