Get lengths of a list in a jinja2 template

How do I get the number of elements in a list in jinja2 template?

For example, in Python:

print(template.render(products=[???]))

and in jinja2

You have {{what goes here?}} products

← Назад к списку