The batch filter is only partially implemented. Looking at the code in the nunjucks repository, there's an extra parameter to pad out the last batched array if its length is less than the batch size.
I don't believe this feature is used in govuk-frontend so it's not a huge priority but it's a good first issue.
The batch filter is only partially implemented. Looking at the code in the nunjucks repository, there's an extra parameter to pad out the last batched array if its length is less than the batch size.
I don't believe this feature is used in govuk-frontend so it's not a huge priority but it's a good first issue.